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 MerchantDefinedInformation {
key: u8,
value: String,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | MerchantDefinedInformation | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BusinessCollectLinkConfig
{
"allOf": [
{
"$ref": "#/components/schemas/BusinessGenericLinkConfig"
},
{
"type": "object",
"required": [
"enabled_payment_methods"
],
"properties": {
"enabled_payment_methods": {
"t... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 156 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BusinessCollectLinkConfig"
] | null | null | null | null |
pub struct CardInfoMigrationResponse {
pub line_number: Option<i64>,
pub card_iin: String,
pub card_issuer: Option<String>,
pub card_network: Option<String>,
pub card_type: Option<String>,
pub card_sub_type: Option<String>,
pub card_issuing_country: Option<String>,
#[serde(skip_serializi... | crates/api_models/src/cards_info.rs | api_models | struct_definition | 103 | rust | CardInfoMigrationResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Worldpay {} | crates/hyperswitch_connectors/src/connectors/worldpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Worldpay | api::PaymentSync for | impl api::PaymentSync for for Worldpay | null | null | null | null | null | null | null | null |
pub fn server(state: routes::AppState) -> Scope {
let max_depth = 10;
let strict = false;
web::scope("/vs/v1")
.app_data(web::Data::new(serde_qs::Config::new(max_depth, strict)))
.service(app::SetupIntents::server(state.clone()))
.service(app::PaymentIntents::... | crates/router/src/compatibility/stripe.rs | router | function_signature | 132 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub fn server(config: AppState) -> Scope {
web::scope("/v2/configs")
.app_data(web::Data::new(config))
.service(web::resource("/").route(web::post().to(config_key_create)))
.service(
web::resource("/{key}")
.route(web::get().to(config_key_r... | crates/router/src/routes/app.rs | router | function_signature | 101 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub fn error_message(&self) -> String {
match self {
#(#arms),*
}
} | crates/router_derive/src/macros/api_error.rs | router_derive | function_signature | 24 | rust | null | null | null | null | error_message | null | null | null | null | null | null | null |
pub async fn profile_create(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<admin::ProfileCreate>,
) -> HttpResponse {
let flow = Flow::ProfileCreate;
let payload = json_payload.into_inner();
if let Err(api_error) = payload
.webhook_details
.as_ref()
... | crates/router/src/routes/profiles.rs | router | function_signature | 290 | rust | null | null | null | null | profile_create | null | null | null | null | null | null | null |
pub struct TransferReversals {
object: String,
has_more: bool,
total_count: i32,
url: String,
} | crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs | hyperswitch_connectors | struct_definition | 32 | rust | TransferReversals | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.DecisionEngineGatewayWiseExtraScore
{
"type": "object",
"required": [
"gatewayName",
"gatewaySigmaFactor"
],
"properties": {
"gatewayName": {
"type": "string"
},
"gatewaySigmaFactor": {
"type": "number",
"format": "double"
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 89 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"DecisionEngineGatewayWiseExtraScore"
] | null | null | null | null |
pub struct Tokenio {
amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/tokenio.rs | hyperswitch_connectors | struct_definition | 27 | rust | Tokenio | null | null | null | null | null | null | null | null | null | null | null |
impl Default for RequestBuilder {
fn default() -> Self {
Self::new()
}
} | crates/common_utils/src/request.rs | common_utils | impl_block | 21 | rust | null | RequestBuilder | Default for | impl Default for for RequestBuilder | null | null | null | null | null | null | null | null |
pub struct TokenizePayloadRequest {
pub value1: String,
pub value2: String,
pub lookup_key: String,
pub service_name: String,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 36 | rust | TokenizePayloadRequest | null | null | null | null | null | null | null | null | null | null | null |
impl ApiEventMetric for AuthenticationSyncPostUpdateRequest {
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 | AuthenticationSyncPostUpdateRequest | ApiEventMetric for | impl ApiEventMetric for for AuthenticationSyncPostUpdateRequest | null | null | null | null | null | null | null | null |
pub async fn push_to_drainer_stream<R>(
&self,
redis_entry: kv::TypedSql,
partition_key: PartitionKey<'_>,
) -> error_stack::Result<(), RedisError>
where
R: KvStorePartition,
{
let global_id = format!("{partition_key}");
let request_id = self.request_id.clone(... | crates/storage_impl/src/kv_router_store.rs | storage_impl | function_signature | 270 | rust | null | null | null | null | push_to_drainer_stream | null | null | null | null | null | null | null |
pub struct PhonepeRouterData<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/phonepe/transformers.rs | hyperswitch_connectors | struct_definition | 50 | rust | PhonepeRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub struct XenditSplitRoute {
/// Amount of payments to be split
pub flat_amount: Option<MinorUnit>,
/// Amount of payments to be split, using a percent rate as unit
pub percent_amount: Option<i64>,
/// Currency code
#[schema(value_type = Currency, example = "USD")]
pub currency: enums::Curr... | crates/common_types/src/payments.rs | common_types | struct_definition | 125 | rust | XenditSplitRoute | null | null | null | null | null | null | null | null | null | null | null |
impl MerchantConnectorAccountUpdateInternal {
pub fn create_merchant_connector_account(
self,
source: MerchantConnectorAccount,
) -> MerchantConnectorAccount {
MerchantConnectorAccount {
connector_type: self.connector_type.unwrap_or(source.connector_type),
connect... | crates/diesel_models/src/merchant_connector_account.rs | diesel_models | impl_block | 148 | rust | null | MerchantConnectorAccountUpdateInternal | null | impl MerchantConnectorAccountUpdateInternal | null | null | null | null | null | null | null | null |
pub(crate) fn deserialize_i64<'de, D>(deserializer: D) -> Result<i64, D::Error>
where
D: serde::Deserializer<'de>,
{
let s = serde_json::Value::deserialize(deserializer)?;
match s {
serde_json::Value::String(str_val) => str_val.parse().map_err(serde::de::Error::custom),
serde_json::Value::Nu... | crates/drainer/src/utils.rs | drainer | function_signature | 182 | rust | null | null | null | null | deserialize_i64 | null | null | null | null | null | null | null |
impl OrganizationBridge for OrganizationNew {
fn get_organization_id(&self) -> id_type::OrganizationId {
self.id.clone()
}
fn get_organization_name(&self) -> Option<String> {
self.organization_name.clone()
}
fn set_organization_name(&mut self, organization_name: String) {
sel... | crates/diesel_models/src/organization.rs | diesel_models | impl_block | 78 | rust | null | OrganizationNew | OrganizationBridge for | impl OrganizationBridge for for OrganizationNew | null | null | null | null | null | null | null | null |
pub struct UasAuthenticationRequestData {
pub browser_details: Option<super::BrowserInformation>,
pub transaction_details: TransactionDetails,
pub pre_authentication_data: super::authentication::PreAuthenticationData,
pub return_url: Option<String>,
pub sdk_information: Option<api_models::payments::... | crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs | hyperswitch_domain_models | struct_definition | 105 | rust | UasAuthenticationRequestData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/bamboraapac.rs
use masking::Secret;
use router::types::{self, api, domain, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct BamboraapacTest;
impl ConnectorActions for BamboraapacTest {}
impl utils::Connecto... | crates/router/tests/connectors/bamboraapac.rs | router | full_file | 2,947 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BHNGiftCardDetails {
/// The gift card or account number
pub account_number: Secret<String>,
/// The security PIN for gift cards requiring it
pub pin: Option<Secret<String>>,
/// The CVV2 code for Open Loop/VPLN products
pub cvv2: Option<Secret<String>>,
/// The expiration date in... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 97 | rust | BHNGiftCardDetails | null | null | null | null | null | null | null | null | null | null | null |
/// Generic version of should_call_unified_connector_service that works with any type
/// implementing OperationSessionGetters trait
pub async fn should_call_unified_connector_service<F: Clone, T, D>(
state: &SessionState,
merchant_context: &MerchantContext,
router_data: &RouterData<F, T, PaymentsResponseDa... | crates/router/src/core/unified_connector_service.rs | router | function_signature | 816 | rust | null | null | null | null | should_call_unified_connector_service | null | null | null | null | null | null | null |
impl Silverflow {
pub fn new() -> &'static Self {
&Self
}
} | crates/hyperswitch_connectors/src/connectors/silverflow.rs | hyperswitch_connectors | impl_block | 21 | rust | null | Silverflow | null | impl Silverflow | null | null | null | null | null | null | null | null |
pub async fn save_network_token_in_locker(
state: &SessionState,
merchant_context: &domain::MerchantContext,
card_data: &payment_method_data::Card,
network_token_data: Option<api::CardDetail>,
payment_method_request: api::PaymentMethodCreate,
) -> RouterResult<(
Option<api_models::payment_method... | crates/router/src/core/payments/tokenization.rs | router | function_signature | 671 | rust | null | null | null | null | save_network_token_in_locker | null | null | null | null | null | null | null |
pub struct BillTo {
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
address1: Option<Secret<String>>,
locality: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
administrative_area: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none... | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 112 | rust | BillTo | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundsRetrieveBody {
pub force_sync: Option<bool>,
} | crates/api_models/src/refunds.rs | api_models | struct_definition | 16 | rust | RefundsRetrieveBody | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Shift4 {} | crates/hyperswitch_connectors/src/connectors/shift4.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Shift4 | api::MandateSetup for | impl api::MandateSetup for for Shift4 | null | null | null | null | null | null | null | null |
pub struct VgsRetrieveResponse {
data: Vec<VgsTokenResponseItem>,
} | crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | VgsRetrieveResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
web::scope("/analytics")
.app_data(web::Data::new(state))
.service(
web::scope("/v1")
.service(
web::resource("metrics/payments")
... | crates/router/src/analytics.rs | router | function_signature | 2,912 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs
Public structs: 10
use common_utils::{
ext_traits::{Encode, StringExt},
types::StringMinorUnit,
};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterData},
router_flow_types::{Exter... | crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs | hyperswitch_connectors | full_file | 1,430 | null | null | null | null | null | null | null | null | null | null | null | null | null |
//Converting Intent-Attempt array to Response if no error
let data: Vec<api::PaymentsResponse> = pi_pa_tuple_vec
.change_context(errors::ApiErrorResponse::InternalServerError)?
.into_iter()
.map(ForeignFrom::foreign_from)
.collect();
Ok(services::ApplicationResponse::Json(
... | crates/router/src/core/payments.rs#chunk7 | router | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Nmi {} | crates/hyperswitch_connectors/src/connectors/nmi.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Nmi | api::PaymentSync for | impl api::PaymentSync for for Nmi | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Square {} | crates/hyperswitch_connectors/src/connectors/square.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Square | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Square | null | null | null | null | null | null | null | null |
pub struct CardNetworkTokenizeRequest {
/// Merchant ID associated with the tokenization request
#[schema(example = "merchant_1671528864", value_type = String)]
pub merchant_id: id_type::MerchantId,
/// Details of the card or payment method to be tokenized
#[serde(flatten)]
pub data: TokenizeDa... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 257 | rust | CardNetworkTokenizeRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/euclid/src/frontend.rs
pub mod ast;
pub mod dir;
pub mod vir;
| crates/euclid/src/frontend.rs | euclid | full_file | 22 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/events/payment.rs
use common_utils::events::{ApiEventMetric, ApiEventsType};
#[cfg(feature = "v2")]
use super::{
PaymentAttemptListRequest, PaymentAttemptListResponse, PaymentStartRedirectionRequest,
PaymentsCreateIntentRequest, PaymentsGetIntentRequest, PaymentsIntentResponse, Pay... | crates/api_models/src/events/payment.rs | api_models | full_file | 3,580 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BankDebitAdditionalData
{
"oneOf": [
{
"type": "object",
"required": [
"ach"
],
"properties": {
"ach": {
"$ref": "#/components/schemas/AchBankDebitAdditionalData"
}
}
},
{
"type": "object",
"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 244 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BankDebitAdditionalData"
] | null | null | null | null |
impl OpenSearchClient {
pub async fn create(conf: &OpenSearchConfig) -> CustomResult<Self, OpenSearchError> {
let url = Url::parse(&conf.host).map_err(|_| OpenSearchError::ConnectionError)?;
let transport = match &conf.auth {
OpenSearchAuth::Basic { username, password } => {
... | crates/analytics/src/opensearch.rs | analytics | impl_block | 812 | rust | null | OpenSearchClient | null | impl OpenSearchClient | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SamsungPayWalletCredentials
{
"oneOf": [
{
"$ref": "#/components/schemas/SamsungPayWebWalletData"
},
{
"$ref": "#/components/schemas/SamsungPayAppWalletData"
}
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 64 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SamsungPayWalletCredentials"
] | null | null | null | null |
pub struct WebhookPaymentEntity {
// pub id: String,
// pub status: RazorpayWebhookPaymentStatus,
// } | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | WebhookPaymentEntity | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Paystack {} | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paystack | api::PaymentVoid for | impl api::PaymentVoid for for Paystack | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payment_intents/metrics/sessionized_metrics/smart_retried_amount.rs
use std::collections::HashSet;
use api_models::{
analytics::{
payment_intents::{
PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier,
},
Granularity, T... | crates/analytics/src/payment_intents/metrics/sessionized_metrics/smart_retried_amount.rs | analytics | full_file | 1,091 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SplitPaymentsRequest
{
"oneOf": [
{
"type": "object",
"required": [
"stripe_split_payment"
],
"properties": {
"stripe_split_payment": {
"$ref": "#/components/schemas/StripeSplitPaymentRequest"
}
}
},
{
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 212 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SplitPaymentsRequest"
] | null | null | null | null |
impl api::PaymentToken for Datatrans {} | crates/hyperswitch_connectors/src/connectors/datatrans.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Datatrans | api::PaymentToken for | impl api::PaymentToken for for Datatrans | null | null | null | null | null | null | null | null |
pub struct AcsProtocolVersion {
pub version: common_utils::types::SemanticVersion,
pub acs_info_ind: Vec<String>,
pub three_ds_method_url: Option<String>,
pub supported_msg_ext: Option<Vec<SupportedMsgExt>>,
} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | struct_definition | 53 | rust | AcsProtocolVersion | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Fiuu {} | crates/hyperswitch_connectors/src/connectors/fiuu.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Fiuu | api::RefundExecute for | impl api::RefundExecute for for Fiuu | null | null | null | null | null | null | null | null |
File: crates/analytics/src/active_payments/metrics/active_payments.rs
use std::collections::HashSet;
use api_models::analytics::{
active_payments::ActivePaymentsMetricsBucketIdentifier, Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultExt;
use time::PrimitiveDateTime;
... | crates/analytics/src/active_payments/metrics/active_payments.rs | analytics | full_file | 615 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentMethodSession {
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/v2/payment-method-sessions").app_data(web::Data::new(state));
route = route.service(
web::resource("")
.route(web::post().to(payment_methods::payment_methods_session_create)... | crates/router/src/routes/app.rs | router | impl_block | 261 | rust | null | PaymentMethodSession | null | impl PaymentMethodSession | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Thunes {} | crates/hyperswitch_connectors/src/connectors/thunes.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Thunes | api::PaymentSession for | impl api::PaymentSession for for Thunes | null | null | null | null | null | null | null | null |
pub struct BackendOutput<O> {
pub rule_name: Option<String>,
pub connector_selection: O,
} | crates/euclid/src/backend.rs | euclid | struct_definition | 23 | rust | BackendOutput | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovalnetAuthorizationResponse {
expiry_date: Option<String>,
auto_action: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | NovalnetAuthorizationResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaystackAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | PaystackAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub fn comparison(input: &str) -> ParseResult<&str, ast::Comparison> {
error::context(
"condition",
combinator::map(
sequence::tuple((
skip_ws(complete::take_while1(|c: char| {
c.is_ascii_alphabetic() || c == '.' || c == '_'
})),
... | crates/euclid/src/frontend/ast/parser.rs | euclid | function_signature | 152 | rust | null | null | null | null | comparison | null | null | null | null | null | null | null |
impl ValidateStatusForOperation for PaymentsCapture {
/// Validate if the current operation can be performed on the current status of the payment intent
fn validate_status_for_operation(
&self,
intent_status: common_enums::IntentStatus,
) -> Result<(), errors::ApiErrorResponse> {
mat... | crates/router/src/core/payments/operations/payment_capture_v2.rs | router | impl_block | 358 | rust | null | PaymentsCapture | ValidateStatusForOperation for | impl ValidateStatusForOperation for for PaymentsCapture | null | null | null | null | null | null | null | null |
pub struct PaymentMethodUpdateMems {
pub orig: PaymentMethod,
pub update_data: PaymentMethodUpdateInternal,
} | crates/diesel_models/src/kv.rs | diesel_models | struct_definition | 26 | rust | PaymentMethodUpdateMems | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/cashtocode.rs
use common_utils::id_type;
use hyperswitch_domain_models::address::{Address, AddressDetails};
use router::types::{self, domain, storage::enums};
use crate::{
connector_auth,
utils::{self, ConnectorActions},
};
#[derive(Clone, Copy)]
struct CashtocodeTest;
im... | crates/router/tests/connectors/cashtocode.rs | router | full_file | 884 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerBody {
email: pii::Email,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | CustomerBody | null | null | null | null | null | null | null | null | null | null | null |
pub async fn fetch_dynamic_routing_configs<T>(
state: &SessionState,
profile_id: &id_type::ProfileId,
routing_id: id_type::RoutingId,
) -> RouterResult<T>
where
T: serde::de::DeserializeOwned
+ Clone
+ DynamicRoutingCache
+ Cacheable
+ serde::Serialize
+ Debug,
{
... | crates/router/src/core/routing/helpers.rs | router | function_signature | 317 | rust | null | null | null | null | fetch_dynamic_routing_configs | null | null | null | null | null | null | null |
impl api::PaymentToken for Globepay {} | crates/hyperswitch_connectors/src/connectors/globepay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Globepay | api::PaymentToken for | impl api::PaymentToken for for Globepay | null | null | null | null | null | null | null | null |
pub trait PaymentMethodsStorageInterface:
Send
+ Sync
+ dyn_clone::DynClone
+ pm_domain::PaymentMethodInterface<Error = errors::StorageError>
+ cards_info::CardsInfoInterface<Error = errors::StorageError>
+ customer::CustomerInterface<Error = errors::StorageError>
+ 'static
{
} | crates/payment_methods/src/state.rs | payment_methods | trait_definition | 75 | rust | null | null | PaymentMethodsStorageInterface | null | null | null | null | null | null | null | null | null |
pub struct PaymentProcessorTokenWithRetryInfo {
/// The complete token status information
pub token_status: PaymentProcessorTokenStatus,
/// Hours to wait before next retry attempt (max of daily/monthly wait)
pub retry_wait_time_hours: i64,
/// Number of retries remaining in the 30-day rolling windo... | crates/router/src/types/storage/revenue_recovery_redis_operation.rs | router | struct_definition | 81 | rust | PaymentProcessorTokenWithRetryInfo | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/shift4.rs | hyperswitch_connectors | function_signature | 27 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct DynamicData {
pub dynamic_data_value: Option<Secret<String>>,
pub dynamic_data_type: Option<String>,
pub ds_trans_id: Option<String>,
} | crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs | hyperswitch_domain_models | struct_definition | 35 | rust | DynamicData | null | null | null | null | null | null | null | null | null | null | null |
pub struct PreAuthenticationVersionCall; | crates/hyperswitch_domain_models/src/router_flow_types/authentication.rs | hyperswitch_domain_models | struct_definition | 7 | rust | PreAuthenticationVersionCall | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/api.rs
Public functions: 6
Public structs: 2
pub mod admin;
pub mod api_keys;
pub mod authentication;
pub mod configs;
#[cfg(feature = "olap")]
pub mod connector_onboarding;
pub mod customers;
pub mod disputes;
pub mod enums;
pub mod ephemeral_key;
pub mod files;
#[cfg(feature = "frm")]... | crates/router/src/types/api.rs | router | full_file | 2,219 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GetRefundFilters;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: AuthenticationData, req: GetRefundFilterRequest, _| async move {
let org_id = au... | crates/router/src/analytics.rs | router | impl_block | 204 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub async fn receive_incoming_relay_webhook<W: types::OutgoingWebhookType>(
state: web::Data<AppState>,
req: HttpRequest,
body: web::Bytes,
path: web::Path<(
common_utils::id_type::MerchantId,
common_utils::id_type::MerchantConnectorAccountId,
) | crates/router/src/routes/webhooks.rs | router | function_signature | 72 | rust | null | null | null | null | receive_incoming_relay_webhook | null | null | null | null | null | null | null |
pub(crate) struct ApiKeyUpdateInternal {
pub name: Option<String>,
pub description: Option<String>,
pub expires_at: Option<Option<PrimitiveDateTime>>,
pub last_used: Option<PrimitiveDateTime>,
} | crates/diesel_models/src/api_keys.rs | diesel_models | struct_definition | 45 | rust | ApiKeyUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/moneris.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
typ... | crates/hyperswitch_connectors/src/connectors/moneris.rs | hyperswitch_connectors | full_file | 6,788 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn should_validate_connectors_in_routing_config(&self) -> bool {
match self {
Self::Single(_) | Self::Priority(_) | Self::VolumeSplit(_) | Self::Advanced(_) => true,
Self::ThreeDsDecisionRule(_) => false,
}
} | crates/api_models/src/routing.rs | api_models | function_signature | 58 | rust | null | null | null | null | should_validate_connectors_in_routing_config | null | null | null | null | null | null | null |
pub struct WalletCardData {
card_data: cards::CardNumber,
expiration_month: Secret<String>,
expiration_year: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | WalletCardData | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ClickToPaySessionResponse
{
"type": "object",
"required": [
"dpa_id",
"dpa_name",
"locale",
"card_brands",
"acquirer_bin",
"acquirer_merchant_id",
"merchant_category_code",
"merchant_country_code",
"transaction_amount",
"transaction_curr... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 471 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ClickToPaySessionResponse"
] | null | null | null | null |
pub struct MandatePaymentTokenizedCard {
transaction_type: TransactionType,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | MandatePaymentTokenizedCard | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenEligibilityResponse {
pub network_request_id: Option<String>,
pub network_client_id: Option<String>,
pub nonce: Option<String>,
pub payment_method_details: Option<PaymentMethodDetails>,
pub network_pan_enrollment_id: Option<String>,
pub ignore_00_field: Option<String>,
pub to... | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | struct_definition | 89 | rust | TokenEligibilityResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/fraud_check/flows/checkout_flow.rs
Public functions: 1
use async_trait::async_trait;
use common_utils::{ext_traits::ValueExt, pii::Email};
use error_stack::ResultExt;
use masking::ExposeInterface;
use super::{ConstructFlowSpecificData, FeatureFrm};
use crate::{
core::{
errors... | crates/router/src/core/fraud_check/flows/checkout_flow.rs | router | full_file | 1,613 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Blocklist {
pub async fn find_by_merchant_id_fingerprint_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
fingerprint_id: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
ds... | crates/diesel_models/src/query/blocklist.rs | diesel_models | impl_block | 477 | rust | null | Blocklist | null | impl Blocklist | null | null | null | null | null | null | null | null |
pub struct AuthSelectRequest {
pub id: Option<String>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 14 | rust | AuthSelectRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RedsysRouterData<T> {
pub amount: StringMinorUnit,
pub currency: api_models::enums::Currency,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | RedsysRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_latest_capture(&self) -> &storage::Capture {
&self.latest_capture
} | crates/router/src/core/payments/types.rs | router | function_signature | 22 | rust | null | null | null | null | get_latest_capture | null | null | null | null | null | null | null |
impl api::PaymentVoid for Archipel {} | crates/hyperswitch_connectors/src/connectors/archipel.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Archipel | api::PaymentVoid for | impl api::PaymentVoid for for Archipel | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Mifinity {} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mifinity | api::PaymentSync for | impl api::PaymentSync for for Mifinity | null | null | null | null | null | null | null | null |
impl MerchantAccount {
pub async fn update(
self,
conn: &PgPooledConn,
merchant_account: MerchantAccountUpdateInternal,
) -> StorageResult<Self> {
match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>(
conn,
self.get_id().to_owned(),
... | crates/diesel_models/src/query/merchant_account.rs | diesel_models | impl_block | 883 | rust | null | MerchantAccount | null | impl MerchantAccount | null | null | null | null | null | null | null | null |
pub fn handle_unified_connector_service_response_for_payment_repeat(
response: payments_grpc::PaymentServiceRepeatEverythingResponse,
) -> CustomResult<
(
AttemptStatus,
Result<PaymentsResponseData, ErrorResponse>,
u16,
),
UnifiedConnectorServiceError,
> {
let status = Attemp... | crates/router/src/core/unified_connector_service.rs | router | function_signature | 123 | rust | null | null | null | null | handle_unified_connector_service_response_for_payment_repeat | null | null | null | null | null | null | null |
impl CustomerRequest {
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> {
Some(
self.customer_id
.to_owned()
.unwrap_or_else(common_utils::generate_customer_id_of_default_length),
)
}
pub fn get_address(&self) -> Option<paymen... | crates/api_models/src/customers.rs | api_models | impl_block | 106 | rust | null | CustomerRequest | null | impl CustomerRequest | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Globepay {} | crates/hyperswitch_connectors/src/connectors/globepay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Globepay | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Globepay | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ExtendedCardInfo
{
"type": "object",
"required": [
"card_number",
"card_exp_month",
"card_exp_year",
"card_holder_name",
"card_cvc"
],
"properties": {
"card_number": {
"type": "string",
"description": "The card number",
"example": ... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 427 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ExtendedCardInfo"
] | null | null | null | null |
pub struct MerchantSurchargeConfigs {
pub show_surcharge_breakup_screen: Option<bool>,
} | crates/api_models/src/surcharge_decision_configs.rs | api_models | struct_definition | 20 | rust | MerchantSurchargeConfigs | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ApplePayPaymentRequest
{
"type": "object",
"required": [
"country_code",
"currency_code",
"total"
],
"properties": {
"country_code": {
"$ref": "#/components/schemas/CountryAlpha2"
},
"currency_code": {
"$ref": "#/components/schemas/Curre... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 373 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ApplePayPaymentRequest"
] | null | null | null | null |
pub trait PaymentIntentInterface {
type Error;
async fn update_payment_intent(
&self,
state: &KeyManagerState,
this: PaymentIntent,
payment_intent: PaymentIntentUpdate,
merchant_key_store: &MerchantKeyStore,
storage_scheme: common_enums::MerchantStorageScheme,
... | crates/hyperswitch_domain_models/src/payments/payment_intent.rs | hyperswitch_domain_models | trait_definition | 1,073 | rust | null | null | PaymentIntentInterface | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodCreate {
/// The type of payment method use for the payment.
#[schema(value_type = PaymentMethod,example = "card")]
pub payment_method_type: api_enums::PaymentMethod,
/// This is a sub-category of payment method.
#[schema(value_type = PaymentMethodType,example = "google_pay"... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 405 | rust | PaymentMethodCreate | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_user_authentication_methods(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<user_api::GetUserAuthenticationMethodsRequest>,
) -> HttpResponse {
let flow = Flow::ListUserAuthenticationMethods;
Box::pin(api::server_wrap(
flow,
state.clone(),
... | crates/router/src/routes/user.rs | router | function_signature | 124 | rust | null | null | null | null | list_user_authentication_methods | null | null | null | null | null | null | null |
- Remove `dummy_connector` from `default` features in `common_enums` ([#3005](https://github.com/juspay/hyperswitch/pull/3005)) ([`bb593ab`](https://github.com/juspay/hyperswitch/commit/bb593ab0cd1a30190b6c305f2432de83ac7fde93))
- Remove error propagation if card name not found in locker in case of temporary token ([#3... | CHANGELOG.md#chunk45 | null | doc_chunk | 8,102 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/services/authorization/permissions.rs
Public functions: 2
use common_enums::{EntityType, PermissionScope, Resource};
use router_derive::generate_permissions;
generate_permissions! {
permissions: [
Payment: {
scopes: [Read, Write],
entities: [Profile, Mercha... | crates/router/src/services/authorization/permissions.rs | router | full_file | 1,141 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/payment-methods/payment-method--retrieve.mdx
# Type: Doc File
---
openapi: get /payment_methods/{method_id}
--- | api-reference/v1/payment-methods/payment-method--retrieve.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
&self.domain_customer.customer_id,
self.key_store.key.get_inner().peek(),
self.merchant_account.storage_scheme,
)
.await
.switch()
.attach_p... | crates/router/src/core/customers.rs#chunk1 | router | chunk | 2,343 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Affirm {} | crates/hyperswitch_connectors/src/connectors/affirm.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Affirm | api::PaymentSession for | impl api::PaymentSession for for Affirm | null | null | null | null | null | null | null | null |
pub fn get_id_type_from_header_if_present<T>(&self, key: &str) -> RouterResult<Option<T>>
where
T: TryFrom<
std::borrow::Cow<'static, str>,
Error = error_stack::Report<errors::ValidationError>,
>,
{
self.headers
.get(key)
.map(|value| value... | crates/router/src/services/authentication.rs | router | function_signature | 197 | rust | null | null | null | null | get_id_type_from_header_if_present | null | null | null | null | null | null | null |
pub struct PreAuthenticate; | crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs | hyperswitch_domain_models | struct_definition | 5 | rust | PreAuthenticate | 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.