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 log_payment_intent(
&self,
intent: &PaymentIntent,
old_intent: Option<PaymentIntent>,
tenant_id: TenantID,
infra_values: Option<Value>,
) -> MQResult<()> {
if let Some(negative_event) = old_intent {
self.log_event(&KafkaEvent::old(
... | crates/router/src/services/kafka.rs | router | function_signature | 253 | rust | null | null | null | null | log_payment_intent | null | null | null | null | null | null | null |
impl fmt::Display for InterpreterError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
InterpreterErrorType::fmt(&self.error_type, f)
}
} | crates/euclid/src/backend/interpreter/types.rs | euclid | impl_block | 45 | rust | null | InterpreterError | fmt::Display for | impl fmt::Display for for InterpreterError | null | null | null | null | null | null | null | null |
File: crates/cards/src/validate.rs
Public functions: 13
Public structs: 3
use std::{collections::HashMap, fmt, ops::Deref, str::FromStr, sync::LazyLock};
use common_utils::errors::ValidationError;
use error_stack::report;
use masking::{PeekInterface, Strategy, StrongSecret, WithType};
use regex::Regex;
#[cfg(not(ta... | crates/cards/src/validate.rs | cards | full_file | 4,530 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ZenWebhookObjectReference {
#[serde(rename = "type")]
pub transaction_type: ZenWebhookTxnType,
pub transaction_id: String,
pub merchant_transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | ZenWebhookObjectReference | null | null | null | null | null | null | null | null | null | null | null |
pub struct NexinetsTransaction {
pub transaction_id: String,
#[serde(rename = "type")]
pub transaction_type: NexinetsTransactionType,
pub currency: enums::Currency,
pub status: NexinetsPaymentStatus,
} | crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | hyperswitch_connectors | struct_definition | 52 | rust | NexinetsTransaction | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.KlarnaSdkPaymentMethodResponse
{
"type": "object",
"properties": {
"payment_type": {
"type": "string",
"nullable": true
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 53 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"KlarnaSdkPaymentMethodResponse"
] | null | null | null | null |
pub fn get_payment_method_type(&self) -> Option<storage_enums::PaymentMethodType> {
self.payment_method_type
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 29 | rust | null | null | null | null | get_payment_method_type | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_payout_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
payout_id: &common_utils::id_type::PayoutId,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::... | crates/diesel_models/src/query/payout_attempt.rs | diesel_models | function_signature | 119 | rust | null | null | null | null | find_by_merchant_id_payout_id | null | null | null | null | null | null | null |
pub struct PaymentMethodOptions {
#[serde(rename = "3d_required")]
pub three_ds: bool,
} | crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | PaymentMethodOptions | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AliPayRedirection
{
"type": "object"
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 23 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AliPayRedirection"
] | null | null | null | null |
pub async fn delete_sample_data(
state: web::Data<AppState>,
http_req: HttpRequest,
payload: web::Json<SampleDataRequest>,
) -> impl actix_web::Responder {
use crate::core::user::sample_data;
let flow = Flow::DeleteSampleData;
Box::pin(api::server_wrap(
flow,
state,
&htt... | crates/router/src/routes/user.rs | router | function_signature | 135 | rust | null | null | null | null | delete_sample_data | null | null | null | null | null | null | null |
pub fn get_metadata(&self) -> Option<Secret<Value>> {
self.metadata.clone()
} | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | function_signature | 21 | rust | null | null | null | null | get_metadata | null | null | null | null | null | null | null |
impl GetPaymentMethodType for BankTransferData {
fn get_payment_method_type(&self) -> api_enums::PaymentMethodType {
match self {
Self::AchBankTransfer { .. } => api_enums::PaymentMethodType::Ach,
Self::SepaBankTransfer { .. } => api_enums::PaymentMethodType::Sepa,
Self::... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | impl_block | 461 | rust | null | BankTransferData | GetPaymentMethodType for | impl GetPaymentMethodType for for BankTransferData | null | null | null | null | null | null | null | null |
File: crates/api_models/src/events/refund.rs
use common_utils::events::{ApiEventMetric, ApiEventsType};
use crate::refunds::{
self, RefundAggregateResponse, RefundListFilters, RefundListMetaData, RefundListRequest,
RefundListResponse,
};
#[cfg(feature = "v1")]
use crate::refunds::{
RefundManualUpdateReque... | crates/api_models/src/events/refund.rs | api_models | full_file | 783 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/facilitapay.rs
Public functions: 1
Public structs: 1
mod requests;
mod responses;
pub mod transformers;
use common_enums::enums;
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt, ValueExt},
request::{Method, Requ... | crates/hyperswitch_connectors/src/connectors/facilitapay.rs | hyperswitch_connectors | full_file | 7,224 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardsData {
card: CardDetails,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | CardsData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/barclaycard.rs
Public functions: 3
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
consts,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, Reque... | crates/hyperswitch_connectors/src/connectors/barclaycard.rs#chunk0 | hyperswitch_connectors | chunk | 8,188 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn populate_bin_details_for_payment_method(
state: &SessionState,
payment_method_data: &domain::PaymentMethodVaultingData,
) -> domain::PaymentMethodVaultingData {
match payment_method_data {
domain::PaymentMethodVaultingData::Card(card) => {
let card_isin = card.card_number.ge... | crates/router/src/core/payment_methods.rs | router | function_signature | 435 | rust | null | null | null | null | populate_bin_details_for_payment_method | null | null | null | null | null | null | null |
/// allow payment update via client auth default should be false
pub fn get_payment_update_enabled_for_client_auth_key(&self) -> String {
format!(
"payment_update_enabled_for_client_auth_{}",
self.get_string_repr()
)
} | crates/common_utils/src/id_type/merchant.rs | common_utils | function_signature | 53 | rust | null | null | null | null | get_payment_update_enabled_for_client_auth_key | null | null | null | null | null | null | null |
pub struct DuitNowQrCodeResponse {
pub reference_no: String,
pub txn_type: TxnType,
pub txn_currency: Currency,
pub txn_amount: StringMajorUnit,
pub txn_channel: String,
#[serde(rename = "TxnID")]
pub txn_id: String,
pub txn_data: QrTxnData,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 78 | rust | DuitNowQrCodeResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/types.rs
Public functions: 3
Public structs: 9
#[cfg(feature = "v2")]
use common_enums::enums::PaymentConnectorTransmission;
#[cfg(feature = "v2")]
use common_utils::id_type;
use common_utils::{hashing::HashedString, pii, types::MinorUnit};
use diesel::{
sql_types::{Json, Jsonb},
... | crates/diesel_models/src/types.rs | diesel_models | full_file | 2,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardTestingGuardConfig {
/// Determines if Card IP Blocking is enabled for profile
pub card_ip_blocking_status: CardTestingGuardStatus,
/// Determines the unsuccessful payment threshold for Card IP Blocking for profile
pub card_ip_blocking_threshold: i32,
/// Determines if Guest User Card... | crates/api_models/src/admin.rs | api_models | struct_definition | 183 | rust | CardTestingGuardConfig | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Fiserv {} | crates/hyperswitch_connectors/src/connectors/fiserv.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Fiserv | api::MandateSetup for | impl api::MandateSetup for for Fiserv | null | null | null | null | null | null | null | null |
impl RelayNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Relay> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/relay.rs | diesel_models | impl_block | 41 | rust | null | RelayNew | null | impl RelayNew | null | null | null | null | null | null | null | null |
pub fn attach_default_headers(mut self) -> Self {
self.headers.extend(default_request_headers());
self
} | crates/common_utils/src/request.rs | common_utils | function_signature | 24 | rust | null | null | null | null | attach_default_headers | null | null | null | null | null | null | null |
pub fn psync_attempt_status_from_transaction_state(
getnet_status: GetnetPaymentStatus,
is_auto_capture: bool,
transaction_type: GetnetTransactionType,
) -> AttemptStatus {
match getnet_status {
GetnetPaymentStatus::Success => {
if is_auto_capture && transaction_type == GetnetTransac... | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | function_signature | 123 | rust | null | null | null | null | psync_attempt_status_from_transaction_state | null | null | null | null | null | null | null |
impl super::connector_events::events::ConnectorEventLogAnalytics for ClickhouseClient {} | crates/analytics/src/clickhouse.rs | analytics | impl_block | 17 | rust | null | ClickhouseClient | super::connector_events::events::ConnectorEventLogAnalytics for | impl super::connector_events::events::ConnectorEventLogAnalytics for for ClickhouseClient | null | null | null | null | null | null | null | null |
pub fn handle_json_response_deserialization_failure(
res: types::Response,
connector: &'static str,
) -> CustomResult<types::ErrorResponse, errors::ConnectorError> {
metrics::RESPONSE_DESERIALIZATION_FAILURE
.add(1, router_env::metric_attributes!(("connector", connector)));
let response_data = ... | crates/router/src/utils.rs | router | function_signature | 291 | rust | null | null | null | null | handle_json_response_deserialization_failure | null | null | null | null | null | null | null |
pub async fn generic_update_with_unique_predicate_get_result<T, V, P, R>(
conn: &PgPooledConn,
predicate: P,
values: V,
) -> StorageResult<R>
where
T: FilterDsl<P> + HasTable<Table = T> + Table + 'static,
V: AsChangeset<Target = <Filter<T, P> as HasTable>::Table> + Debug + 'static,
Filter<T, P>:... | crates/diesel_models/src/query/generics.rs | diesel_models | function_signature | 372 | rust | null | null | null | null | generic_update_with_unique_predicate_get_result | null | null | null | null | null | null | null |
File: crates/router/src/routes/cache.rs
Public functions: 1
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use super::AppState;
use crate::{
core::{api_locking, cache},
services::{api, authentication as auth},
};
#[instrument(skip_all)]
pub async fn invalidate(
... | crates/router/src/routes/cache.rs | router | full_file | 185 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_storage(check: &'a FraudCheck) -> Self {
Self {
frm_id: &check.frm_id,
payment_id: &check.payment_id,
merchant_id: &check.merchant_id,
attempt_id: &check.attempt_id,
created_at: check.created_at.assume_utc(),
frm_name: &check.fr... | crates/router/src/services/kafka/fraud_check.rs | router | function_signature | 189 | rust | null | null | null | null | from_storage | null | null | null | null | null | null | null |
pub struct WellsfargoTransactionResponse {
id: String,
application_information: ApplicationInformation,
client_reference_information: Option<ClientReferenceInformation>,
error_information: Option<WellsfargoErrorInformation>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 43 | rust | WellsfargoTransactionResponse | null | null | null | null | null | null | null | null | null | null | null |
impl BlocklistNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Blocklist> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/blocklist.rs | diesel_models | impl_block | 41 | rust | null | BlocklistNew | null | impl BlocklistNew | null | null | null | null | null | null | null | null |
pub struct AddAccessTokenResult {
pub access_token_result: Result<Option<AccessToken>, ErrorResponse>,
pub connector_supports_access_token: bool,
} | crates/router/src/types.rs | router | struct_definition | 30 | rust | AddAccessTokenResult | null | null | null | null | null | null | null | null | null | null | null |
pub async fn toggle_blocklist_guard_for_merchant(
state: &SessionState,
merchant_id: &common_utils::id_type::MerchantId,
query: api_blocklist::ToggleBlocklistQuery,
) -> CustomResult<api_blocklist::ToggleBlocklistResponse, errors::ApiErrorResponse> {
let key = merchant_id.get_blocklist_guard_key();
... | crates/router/src/core/blocklist/utils.rs | router | function_signature | 355 | rust | null | null | null | null | toggle_blocklist_guard_for_merchant | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Mollie {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))... | crates/hyperswitch_connectors/src/connectors/mollie.rs | hyperswitch_connectors | impl_block | 214 | rust | null | Mollie | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Mollie | null | null | null | null | null | null | null | null |
pub fn new(
subscription_id: String,
status: String,
billing_processor: Option<String>,
payment_method_id: Option<String>,
merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
client_secret: Option<String>,
connector_subscription_id: O... | crates/diesel_models/src/subscription.rs | diesel_models | function_signature | 191 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct FiservemeaTransactionAmount {
total: StringMajorUnit,
currency: common_enums::Currency,
} | crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | FiservemeaTransactionAmount | null | null | null | null | null | null | null | null | null | null | null |
pub struct PhonepeAuthType {
pub merchant_id: Secret<String>,
pub salt_key: Secret<String>,
pub key_index: String,
} | crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | PhonepeAuthType | null | null | null | null | null | null | null | null | null | null | null |
impl MerchantConnectorAccountUpdateInternal {
pub fn create_merchant_connector_account(
self,
source: MerchantConnectorAccount,
) -> MerchantConnectorAccount {
MerchantConnectorAccount {
merchant_id: source.merchant_id,
connector_type: self.connector_type.unwrap_o... | crates/diesel_models/src/merchant_connector_account.rs | diesel_models | impl_block | 180 | rust | null | MerchantConnectorAccountUpdateInternal | null | impl MerchantConnectorAccountUpdateInternal | null | null | null | null | null | null | null | null |
pub struct PaystackRefundRequest {
pub transaction: String,
pub amount: MinorUnit,
} | crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | PaystackRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PostCaptureVoid; | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | 6 | rust | PostCaptureVoid | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Gpayments {} | crates/hyperswitch_connectors/src/connectors/gpayments.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Gpayments | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Gpayments | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.CustomerDetailsResponse
{
"type": "object",
"description": "Details of customer attached to this payment",
"properties": {
"id": {
"type": "string",
"description": "The identifier for the customer.",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"n... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 319 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"CustomerDetailsResponse"
] | null | null | null | null |
pub async fn save_in_locker(
_state: &SessionState,
_merchant_context: &domain::MerchantContext,
_payment_method_request: api::PaymentMethodCreate,
) -> RouterResult<(
api_models::payment_methods::PaymentMethodResponse,
Option<payment_methods::transformers::DataDuplicationCheck>,
)> {
todo!()
} | crates/router/src/core/payments/tokenization.rs | router | function_signature | 77 | rust | null | null | null | null | save_in_locker | null | null | null | null | null | null | null |
pub struct PayPalOnboardingDone {
pub payer_id: id_type::MerchantId,
} | crates/api_models/src/connector_onboarding.rs | api_models | struct_definition | 19 | rust | PayPalOnboardingDone | null | null | null | null | null | null | null | null | null | null | null |
pub struct CybersourceRecipientInfo {
first_name: Secret<String>,
last_name: Secret<String>,
address1: Secret<String>,
locality: String,
administrative_area: Secret<String>,
postal_code: Secret<String>,
country: enums::CountryAlpha2,
phone_number: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 67 | rust | CybersourceRecipientInfo | null | null | null | null | null | null | null | null | null | null | null |
pub struct KlarnaErrorResponse {
pub error_code: String,
pub error_messages: Option<Vec<String>>,
pub error_message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | KlarnaErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl WalletData {
pub fn get_paze_wallet_data(&self) -> Option<&PazeWalletData> {
if let Self::Paze(paze_wallet_data) = self {
Some(paze_wallet_data)
} else {
None
}
}
pub fn get_apple_pay_wallet_data(&self) -> Option<&ApplePayWalletData> {
if let Sel... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | impl_block | 169 | rust | null | WalletData | null | impl WalletData | null | null | null | null | null | null | null | null |
pub async fn get_payment_data_from_payment_id(
state: &SessionState,
payment_id: String,
) -> types::DummyConnectorResult<types::DummyConnectorPaymentData> {
let redis_conn = state
.store
.get_redis_conn()
.change_context(errors::DummyConnectorErrors::InternalServerError)
.at... | crates/router/src/routes/dummy_connector/utils.rs | router | function_signature | 137 | rust | null | null | null | null | get_payment_data_from_payment_id | null | null | null | null | null | null | null |
pub async fn create_new_authentication(
state: &SessionState,
merchant_id: common_utils::id_type::MerchantId,
authentication_connector: String,
token: String,
profile_id: common_utils::id_type::ProfileId,
payment_id: common_utils::id_type::PaymentId,
merchant_connector_id: common_utils::id_t... | crates/router/src/core/authentication/utils.rs | router | function_signature | 627 | rust | null | null | null | null | create_new_authentication | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Bluecode {
fn get_webhook_source_verification_algorithm(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::HmacSha512))
}
fn g... | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 858 | rust | null | Bluecode | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Bluecode | null | null | null | null | null | null | null | null |
pub struct UserIdFromAuth {
pub user_id: String,
pub tenant_id: Option<id_type::TenantId>,
} | crates/router/src/services/authentication.rs | router | struct_definition | 27 | rust | UserIdFromAuth | null | null | null | null | null | null | null | null | null | null | null |
pub struct ConstraintGraph<V: ValueNode> {
pub domain: DenseMap<DomainId, DomainInfo>,
pub domain_identifier_map: FxHashMap<DomainIdentifier, DomainId>,
pub nodes: DenseMap<NodeId, Node<V>>,
pub edges: DenseMap<EdgeId, Edge>,
pub value_map: FxHashMap<NodeValue<V>, NodeId>,
pub node_info: DenseMa... | crates/hyperswitch_constraint_graph/src/graph.rs | hyperswitch_constraint_graph | struct_definition | 111 | rust | ConstraintGraph | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_by_theme_id_and_lineage(
conn: &PgPooledConn,
theme_id: String,
lineage: ThemeLineage,
) -> StorageResult<Self> {
generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, _>(
conn,
dsl::theme_id
.eq(theme_id)... | crates/diesel_models/src/query/user/theme.rs | diesel_models | function_signature | 96 | rust | null | null | null | null | delete_by_theme_id_and_lineage | null | null | null | null | null | null | null |
impl api::RefundExecute for Amazonpay {} | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Amazonpay | api::RefundExecute for | impl api::RefundExecute for for Amazonpay | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
Public functions: 1
Public structs: 10
use std::collections::HashMap;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::ByteSliceExt,
pii::{Email, IpAddress},
request::Method,
types::FloatMaj... | crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs | hyperswitch_connectors | full_file | 3,291 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenioRefundRequest {
pub amount: StringMajorUnit,
} | crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | TokenioRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/payouts/{payout_id}/confirm"
{
"post": {
"tags": [
"Payouts"
],
"summary": "Payouts - Confirm",
"operationId": "Confirm a Payout",
"parameters": [
{
"name": "payout_id",
"in": "path",
"description": "The identifier for payout",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 264 | .json | null | null | null | null | null | openapi_spec | paths | [
"/payouts/{payout_id}/confirm"
] | null | null | null | null |
pub struct TouchNGoRedirection {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 8 | rust | TouchNGoRedirection | null | null | null | null | null | null | null | null | null | null | null |
pub struct NordeaErrorResponse {
/// Error response body
pub error: Option<NordeaErrorBody>,
/// External response header
pub group_header: Option<NordeaGroupHeader>,
#[serde(rename = "httpCode")]
pub http_code: Option<String>,
#[serde(rename = "moreInformation")]
pub more_information: O... | crates/hyperswitch_connectors/src/connectors/nordea/responses.rs | hyperswitch_connectors | struct_definition | 76 | rust | NordeaErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_conditional_config(
_state: SessionState,
_merchant_context: domain::MerchantContext,
) -> RouterResponse<()> {
todo!()
} | crates/router/src/core/conditional_config.rs | router | function_signature | 36 | rust | null | null | null | null | delete_conditional_config | null | null | null | null | null | null | null |
pub async fn delete_gsm_rule() {} | crates/openapi/src/routes/gsm.rs | openapi | function_signature | 9 | rust | null | null | null | null | delete_gsm_rule | null | null | null | null | null | null | null |
pub struct ResponsePaymentMethodTypes {
/// The payment method type enabled
#[schema(example = "klarna", value_type = PaymentMethodType)]
pub payment_method_type: api_enums::PaymentMethodType,
/// The list of payment experiences enabled, if applicable for a payment method type
pub payment_experienc... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 282 | rust | ResponsePaymentMethodTypes | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/customers/customers--retrieve.mdx
# Type: Doc File
---
openapi: get /v2/customers/{id}
---
| api-reference/v2/customers/customers--retrieve.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl RequiredFieldsAndSurchargeWithExtraInfoForEnabledPaymentMethodTypes {
fn generate_response(
self,
customer_payment_methods: Option<
Vec<api_models::payment_methods::CustomerPaymentMethodResponseItem>,
>,
) -> api_models::payments::PaymentMethodListResponseForPayments {
... | crates/router/src/core/payments/payment_methods.rs | router | impl_block | 210 | rust | null | RequiredFieldsAndSurchargeWithExtraInfoForEnabledPaymentMethodTypes | null | impl RequiredFieldsAndSurchargeWithExtraInfoForEnabledPaymentMethodTypes | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Nuvei {} | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nuvei | api::PaymentSession for | impl api::PaymentSession for for Nuvei | null | null | null | null | null | null | null | null |
pub fn rule_conditions_array(input: &str) -> ParseResult<&str, Vec<ast::IfStatement>> {
error::context(
"rules_array",
sequence::delimited(
skip_ws(complete::tag("{")),
multi::many1(if_statement),
skip_ws(complete::tag("}")),
),
)(input)
} | crates/euclid/src/frontend/ast/parser.rs | euclid | function_signature | 74 | rust | null | null | null | null | rule_conditions_array | null | null | null | null | null | null | null |
pub async fn construct_dsl_and_perform_eligibility_analysis<F, D>(
self,
state: &SessionState,
key_store: &domain::MerchantKeyStore,
payment_data: &D,
profile_id: &common_utils::id_type::ProfileId,
) -> RouterResult<Vec<api::ConnectorData>>
where
F: Send + Clone,... | crates/router/src/core/routing.rs | router | function_signature | 403 | rust | null | null | null | null | construct_dsl_and_perform_eligibility_analysis | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RetrieveApiKeyResponse
{
"type": "object",
"description": "The response body for retrieving an API Key.",
"required": [
"key_id",
"merchant_id",
"name",
"prefix",
"created",
"expiration"
],
"properties": {
"key_id": {
"type": "string",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 433 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RetrieveApiKeyResponse"
] | null | null | null | null |
OpenAPI Block Path: components.schemas.FeatureMetadata
{
"type": "object",
"description": "additional data that might be required by hyperswitch",
"properties": {
"redirect_response": {
"allOf": [
{
"$ref": "#/components/schemas/RedirectResponse"
}
],
"nullable": tr... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 175 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"FeatureMetadata"
] | null | null | null | null |
impl ConnectorSpecifications for Aci {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&ACI_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*ACI_SUPPORTED_PAYMENT_METHODS)
}
fn get_supported_webhoo... | crates/hyperswitch_connectors/src/connectors/aci.rs | hyperswitch_connectors | impl_block | 105 | rust | null | Aci | ConnectorSpecifications for | impl ConnectorSpecifications for for Aci | null | null | null | null | null | null | null | null |
pub struct AuthipayTransactionProcessingDetails {
pub order_id: String,
pub transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | AuthipayTransactionProcessingDetails | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_mandate() {} | crates/openapi/src/routes/mandates.rs | openapi | function_signature | 9 | rust | null | null | null | null | get_mandate | null | null | null | null | null | null | null |
impl DynamicRoutingAlgorithmRef {
pub fn update(&mut self, new: Self) {
if let Some(elimination_routing_algorithm) = new.elimination_routing_algorithm {
self.elimination_routing_algorithm = Some(elimination_routing_algorithm)
}
if let Some(success_based_algorithm) = new.success_b... | crates/api_models/src/routing.rs | api_models | impl_block | 479 | rust | null | DynamicRoutingAlgorithmRef | null | impl DynamicRoutingAlgorithmRef | null | null | null | null | null | null | null | null |
pub struct Payouts {
pub payout_id: id_type::PayoutId,
pub merchant_id: id_type::MerchantId,
pub customer_id: Option<id_type::CustomerId>,
pub address_id: Option<String>,
pub payout_type: Option<storage_enums::PayoutType>,
pub payout_method_id: Option<String>,
pub amount: MinorUnit,
pub ... | crates/hyperswitch_domain_models/src/payouts/payouts.rs | hyperswitch_domain_models | struct_definition | 246 | rust | Payouts | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Gocardless {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&GOCARDLESS_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*GOCARDLESS_SUPPORTED_PAYMENT_METHODS)
}
fn... | crates/hyperswitch_connectors/src/connectors/gocardless.rs | hyperswitch_connectors | impl_block | 112 | rust | null | Gocardless | ConnectorSpecifications for | impl ConnectorSpecifications for for Gocardless | null | null | null | null | null | null | null | null |
impl api::RefundSync for Paysafe {} | crates/hyperswitch_connectors/src/connectors/paysafe.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Paysafe | api::RefundSync for | impl api::RefundSync for for Paysafe | null | null | null | null | null | null | null | null |
pub fn convert_connector(
connector_name: &str,
) -> CustomResult<ConnectorEnum, errors::ApiErrorResponse> {
match enums::Connector::from_str(connector_name) {
Ok(name) => match name {
enums::Connector::Aci => Ok(ConnectorEnum::Old(Box::new(connector::Aci::new()))),
... | crates/router/src/types/api/connector_mapping.rs | router | function_signature | 4,074 | rust | null | null | null | null | convert_connector | null | null | null | null | null | null | null |
impl MessagingInterface for KafkaProducer {
type MessageClass = EventType;
fn send_message<T>(
&self,
data: T,
metadata: HashMap<String, String>,
timestamp: PrimitiveDateTime,
) -> error_stack::Result<(), EventsError>
where
T: Message<Class = Self::MessageClass> ... | crates/router/src/services/kafka.rs | router | impl_block | 436 | rust | null | KafkaProducer | MessagingInterface for | impl MessagingInterface for for KafkaProducer | null | null | null | null | null | null | null | null |
impl GsmValidation for PayoutData {
#[inline(always)]
fn should_call_gsm(&self) -> bool {
match self.payout_attempt.status {
common_enums::PayoutStatus::Success
| common_enums::PayoutStatus::RequiresConfirmation
| common_enums::PayoutStatus::Cancelled
| co... | crates/router/src/core/payouts/retry.rs | router | impl_block | 212 | rust | null | PayoutData | GsmValidation for | impl GsmValidation for for PayoutData | null | null | null | null | null | null | null | null |
impl CallbackMapperInterface for KafkaStore {
#[instrument(skip_all)]
async fn insert_call_back_mapper(
&self,
call_back_mapper: domain::CallbackMapper,
) -> CustomResult<domain::CallbackMapper, errors::StorageError> {
self.diesel_store
.insert_call_back_mapper(call_back_... | crates/router/src/db/kafka_store.rs | router | impl_block | 136 | rust | null | KafkaStore | CallbackMapperInterface for | impl CallbackMapperInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct MerchantAcceptorRef {
pub key: String,
pub version: i32,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | MerchantAcceptorRef | null | null | null | null | null | null | null | null | null | null | null |
File: crates/payment_methods/src/state.rs
Public functions: 1
Public structs: 1
#[cfg(feature = "v1")]
use common_utils::errors::CustomResult;
use common_utils::types::keymanager;
#[cfg(feature = "v1")]
use hyperswitch_domain_models::merchant_account;
use hyperswitch_domain_models::{
cards_info, customer, mercha... | crates/payment_methods/src/state.rs | payment_methods | full_file | 573 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/services/authorization/info.rs
Public functions: 2
use std::ops::Not;
use api_models::user_role::GroupInfo;
use common_enums::{ParentGroup, PermissionGroup};
use strum::IntoEnumIterator;
// TODO: To be deprecated
pub fn get_group_authorization_info() -> Option<Vec<GroupInfo>> {
let group... | crates/router/src/services/authorization/info.rs | router | full_file | 850 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn profile_update(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<(
common_utils::id_type::MerchantId,
common_utils::id_type::ProfileId,
) | crates/router/src/routes/profiles.rs | router | function_signature | 50 | rust | null | null | null | null | profile_update | null | null | null | null | null | null | null |
pub trait AccountsStorageInterface:
Send
+ Sync
+ dyn_clone::DynClone
+ OrganizationInterface
+ merchant_account::MerchantAccountInterface
+ business_profile::ProfileInterface
+ merchant_connector_account::MerchantConnectorAccountInterface
+ merchant_key_store::MerchantKeyStoreInterface
... | crates/router/src/db.rs | router | trait_definition | 81 | rust | null | null | AccountsStorageInterface | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/payouts.rs
pub use diesel_models::payouts::{Payouts, PayoutsNew, PayoutsUpdate, PayoutsUpdateInternal};
| crates/router/src/types/storage/payouts.rs | router | full_file | 41 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
Public functions: 6
Public structs: 10
use common_utils::{ext_traits::OptionExt, pii::Email};
use error_stack::{Report, ResultExt};
use serde::{Deserialize, Serialize};
use crate::{
address,
errors::api_error_response::ApiErro... | crates/hyperswitch_domain_models/src/router_request_types/authentication.rs | hyperswitch_domain_models | full_file | 1,329 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorAuthentication for Threedsecureio {} | crates/hyperswitch_connectors/src/connectors/threedsecureio.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Threedsecureio | ConnectorAuthentication for | impl ConnectorAuthentication for for Threedsecureio | null | null | null | null | null | null | null | null |
pub struct RecipientCardAccountRequest {
#[serde(rename = "external_account[object]")]
external_account_object: String,
#[serde(rename = "external_account[number]")]
external_account_number: Secret<String>,
#[serde(rename = "external_account[exp_month]")]
external_account_exp_month: Secret<Strin... | crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs | hyperswitch_connectors | struct_definition | 87 | rust | RecipientCardAccountRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refund_create_core(
state: SessionState,
merchant_context: domain::MerchantContext,
_profile_id: Option<common_utils::id_type::ProfileId>,
req: refunds::RefundRequest,
) -> RouterResponse<refunds::RefundResponse> {
let db = &*state.store;
let (merchant_id, payment_intent, payment_at... | crates/router/src/core/refunds.rs | router | function_signature | 643 | rust | null | null | null | null | refund_create_core | null | null | null | null | null | null | null |
File: crates/external_services/src/managers/encryption_management.rs
Public functions: 2
//! Encryption management util module
use std::sync::Arc;
use common_utils::errors::CustomResult;
use hyperswitch_interfaces::encryption_interface::{
EncryptionError, EncryptionManagementInterface,
};
#[cfg(feature = "aws_... | crates/external_services/src/managers/encryption_management.rs | external_services | full_file | 379 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_wise_webhooks_event(
state: WiseSyncStatus,
) -> api_models::webhooks::IncomingWebhookEvent {
match state {
WiseSyncStatus::IncomingPaymentWaiting => {
api_models::webhooks::IncomingWebhookEvent::PayoutProcessing
}
WiseSyncStatus::IncomingPaymentInitiated => {
... | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | function_signature | 291 | rust | null | null | null | null | get_wise_webhooks_event | null | null | null | null | null | null | null |
pub trait GetPaymentMethodType {
fn get_payment_method_type(&self) -> api_enums::PaymentMethodType;
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | trait_definition | 26 | rust | null | null | GetPaymentMethodType | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/authorizedotnet.rs
use std::str::FromStr;
use masking::Secret;
use router::types::{self, domain, storage::enums};
use crate::{
connector_auth,
utils::{self, ConnectorActions, PaymentInfo},
};
#[derive(Clone, Copy)]
struct AuthorizedotnetTest;
impl ConnectorActions for Au... | crates/router/tests/connectors/authorizedotnet.rs | router | full_file | 4,225 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
id: String,
status: RefundStatus,
} | crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Shift4 {} | crates/hyperswitch_connectors/src/connectors/shift4.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Shift4 | api::Refund for | impl api::Refund for for Shift4 | null | null | null | null | null | null | null | null |
pub struct KafkaPaymentIntent<'a> {
pub payment_id: &'a id_type::PaymentId,
pub merchant_id: &'a id_type::MerchantId,
pub status: storage_enums::IntentStatus,
pub amount: common_types::MinorUnit,
pub currency: Option<storage_enums::Currency>,
pub amount_captured: Option<common_types::MinorUnit>,... | crates/router/src/services/kafka/payment_intent.rs | router | struct_definition | 428 | rust | KafkaPaymentIntent | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_extended_authorization_response_data(
&self,
) -> Option<&ExtendedAuthorizationResponseData> {
self.extended_authorization_response_data.as_ref()
} | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | function_signature | 37 | rust | null | null | null | null | get_extended_authorization_response_data | 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.