text stringlengths 65 57.3k | file_path stringlengths 22 92 | module stringclasses 38
values | type stringclasses 7
values | struct_name stringlengths 3 60 ⌀ | impl_count int64 0 60 ⌀ | traits listlengths 0 59 ⌀ | tokens int64 16 8.19k | function_name stringlengths 3 85 ⌀ | type_name stringlengths 1 67 ⌀ | trait_name stringclasses 573
values | method_count int64 0 31 ⌀ | public_method_count int64 0 19 ⌀ | submodule_count int64 0 56 ⌀ | export_count int64 0 9 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// File: crates/common_utils/src/crypto.rs
// Module: common_utils
// Public functions: 10
// Public structs: 14
//! Utilities for cryptographic algorithms
use std::ops::Deref;
use base64::Engine;
use error_stack::ResultExt;
use masking::{ExposeInterface, Secret};
use md5;
use pem;
use ring::{
aead::{self, BoundK... | crates/common_utils/src/crypto.rs#chunk0 | common_utils | chunk | null | null | null | 8,187 | null | null | null | null | null | null | null |
// File: crates/router/src/core/payments/operations.rs
// Module: router
// Public structs: 4
#[cfg(feature = "v1")]
pub mod payment_approve;
#[cfg(feature = "v1")]
pub mod payment_cancel;
#[cfg(feature = "v1")]
pub mod payment_cancel_post_capture;
#[cfg(feature = "v1")]
pub mod payment_capture;
#[cfg(feature = "v1")]... | crates/router/src/core/payments/operations.rs | router | full_file | null | null | null | 7,584 | null | null | null | null | null | null | null |
// Struct: NomupayErrorResponse
// File: crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NomupayErrorResponse | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | NomupayErrorResponse | 0 | [] | 51 | null | null | null | null | null | null | null |
// Struct: BusinessGenericLinkConfig
// File: crates/diesel_models/src/business_profile.rs
// Module: diesel_models
// Implementations: 0
pub struct BusinessGenericLinkConfig | crates/diesel_models/src/business_profile.rs | diesel_models | struct_definition | BusinessGenericLinkConfig | 0 | [] | 39 | null | null | null | null | null | null | null |
// Struct: GetRoleRequest
// File: crates/api_models/src/user_role/role.rs
// Module: api_models
// Implementations: 0
pub struct GetRoleRequest | crates/api_models/src/user_role/role.rs | api_models | struct_definition | GetRoleRequest | 0 | [] | 38 | null | null | null | null | null | null | null |
// Implementation: impl Capturable for for PaymentsSyncData
// File: crates/router/src/types.rs
// Module: router
// Methods: 4 total (0 public)
impl Capturable for for PaymentsSyncData | crates/router/src/types.rs | router | impl_block | null | null | null | 44 | null | PaymentsSyncData | Capturable for | 4 | 0 | null | null |
// Implementation: impl api::PaymentToken for for Globalpay
// File: crates/hyperswitch_connectors/src/connectors/globalpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Globalpay | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | null | null | null | 57 | null | Globalpay | api::PaymentToken for | 0 | 0 | null | null |
// Implementation: impl StaticRoutingAlgorithm
// File: crates/api_models/src/routing.rs
// Module: api_models
// Methods: 1 total (1 public)
impl StaticRoutingAlgorithm | crates/api_models/src/routing.rs | api_models | impl_block | null | null | null | 39 | null | StaticRoutingAlgorithm | null | 1 | 1 | null | null |
// Struct: FortePaymentsRequest
// File: crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct FortePaymentsRequest | crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | hyperswitch_connectors | struct_definition | FortePaymentsRequest | 0 | [] | 50 | null | null | null | null | null | null | null |
// Function: get_decoupled_authentication_type
// File: crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
// Module: hyperswitch_domain_models
pub fn get_decoupled_authentication_type(&self) -> common_enums::DecoupledAuthenticationType | crates/hyperswitch_domain_models/src/router_request_types/authentication.rs | hyperswitch_domain_models | function_signature | null | null | null | 56 | get_decoupled_authentication_type | null | null | null | null | null | null |
// Struct: ElavonPaymentsResponse
// File: crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct ElavonPaymentsResponse | crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | hyperswitch_connectors | struct_definition | ElavonPaymentsResponse | 0 | [] | 52 | null | null | null | null | null | null | null |
// Struct: BokuPsyncRequest
// File: crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct BokuPsyncRequest | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | BokuPsyncRequest | 0 | [] | 51 | null | null | null | null | null | null | null |
// Struct: NovalnetWebhookNotificationResponse
// File: crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NovalnetWebhookNotificationResponse | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | NovalnetWebhookNotificationResponse | 0 | [] | 56 | null | null | null | null | null | null | null |
// Struct: ApplePayWalletData
// File: crates/hyperswitch_domain_models/src/payment_method_data.rs
// Module: hyperswitch_domain_models
// Implementations: 1
pub struct ApplePayWalletData | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | ApplePayWalletData | 1 | [] | 45 | null | null | null | null | null | null | null |
// Function: get_id
// File: crates/hyperswitch_domain_models/src/merchant_account.rs
// Module: hyperswitch_domain_models
// Documentation: Get the unique identifier of MerchantAccount
pub fn get_id(&self) -> &common_utils::id_type::MerchantId | crates/hyperswitch_domain_models/src/merchant_account.rs | hyperswitch_domain_models | function_signature | null | null | null | 58 | get_id | null | null | null | null | null | null |
// Function: get_expired_page
// File: crates/router/src/routes/dummy_connector/utils.rs
// Module: router
pub fn get_expired_page(dummy_connector_conf: &settings::DummyConnector) -> String | crates/router/src/routes/dummy_connector/utils.rs | router | function_signature | null | null | null | 42 | get_expired_page | null | null | null | null | null | null |
// Struct: PaymentsMandateReferenceRecord
// File: crates/hyperswitch_domain_models/src/mandates.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct PaymentsMandateReferenceRecord | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | struct_definition | PaymentsMandateReferenceRecord | 0 | [] | 49 | null | null | null | null | null | null | null |
// Struct: DebtorInformation
// File: crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct DebtorInformation | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | DebtorInformation | 0 | [] | 48 | null | null | null | null | null | null | null |
// Struct: Blocklist
// File: crates/router/src/routes/app.rs
// Module: router
// Implementations: 1
pub struct Blocklist | crates/router/src/routes/app.rs | router | struct_definition | Blocklist | 1 | [] | 32 | null | null | null | null | null | null | null |
&self,
request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::ConnectorError> {
let aci_notification: aci::AciWebhookNotification =
serde_json::from_slice(request.body)
.change_context(errors::ConnectorError::... | crates/hyperswitch_connectors/src/connectors/aci.rs#chunk1 | hyperswitch_connectors | chunk | null | null | null | 1,669 | null | null | null | null | null | null | null |
data: &PaymentsAuthorizeRouterData,
event_builder: Option<&mut ConnectorEvent>,
res: Response,
) -> CustomResult<PaymentsAuthorizeRouterData, errors::ConnectorError> {
let response: PaypalAuthResponse =
res.response
.parse_struct("paypal PaypalAuthResponse... | crates/hyperswitch_connectors/src/connectors/paypal.rs#chunk1 | hyperswitch_connectors | chunk | null | null | null | 8,184 | null | null | null | null | null | null | null |
// Function: get_payment_method_type
// File: crates/api_models/src/payment_methods.rs
// Module: api_models
pub fn get_payment_method_type(&self) -> Option<api_enums::PaymentMethodType> | crates/api_models/src/payment_methods.rs | api_models | function_signature | null | null | null | 45 | get_payment_method_type | null | null | null | null | null | null |
// Function: list_payment_methods
// File: crates/openapi/src/routes/payments.rs
// Module: openapi
pub fn list_payment_methods() | crates/openapi/src/routes/payments.rs | openapi | function_signature | null | null | null | 31 | list_payment_methods | null | null | null | null | null | null |
// File: crates/analytics/src/active_payments/metrics/active_payments.rs
// Module: analytics
use std::collections::HashSet;
use api_models::analytics::{
active_payments::ActivePaymentsMetricsBucketIdentifier, Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultExt;
use ti... | crates/analytics/src/active_payments/metrics/active_payments.rs | analytics | full_file | null | null | null | 621 | null | null | null | null | null | null | null |
// File: crates/router/src/core/conditional_config.rs
// Module: router
// Public functions: 6
#[cfg(feature = "v2")]
use api_models::conditional_configs::DecisionManagerRequest;
use api_models::conditional_configs::{
DecisionManager, DecisionManagerRecord, DecisionManagerResponse,
};
use common_utils::ext_traits:... | crates/router/src/core/conditional_config.rs | router | full_file | null | null | null | 2,404 | null | null | null | null | null | null | null |
// Implementation: impl PaymentMetricAccumulator for for CountAccumulator
// File: crates/analytics/src/payments/accumulator.rs
// Module: analytics
// Methods: 2 total (0 public)
impl PaymentMetricAccumulator for for CountAccumulator | crates/analytics/src/payments/accumulator.rs | analytics | impl_block | null | null | null | 56 | null | CountAccumulator | PaymentMetricAccumulator for | 2 | 0 | null | null |
// Implementation: impl PaymentRedirectFlow for for PaymentAuthenticateCompleteAuthorize
// File: crates/router/src/core/payments.rs
// Module: router
// Methods: 3 total (0 public)
impl PaymentRedirectFlow for for PaymentAuthenticateCompleteAuthorize | crates/router/src/core/payments.rs | router | impl_block | null | null | null | 50 | null | PaymentAuthenticateCompleteAuthorize | PaymentRedirectFlow for | 3 | 0 | null | null |
// Function: delete_card_from_hs_locker_by_global_id
// File: crates/router/src/core/payment_methods/cards.rs
// Module: router
pub fn delete_card_from_hs_locker_by_global_id<'a>(
state: &routes::SessionState,
id: &str,
merchant_id: &id_type::MerchantId,
card_reference: &'a str,
) -> errors::RouterResu... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | null | null | null | 92 | delete_card_from_hs_locker_by_global_id | null | null | null | null | null | null |
// Implementation: impl ProcessTracker
// File: crates/diesel_models/src/query/process_tracker.rs
// Module: diesel_models
// Methods: 6 total (0 public)
impl ProcessTracker | crates/diesel_models/src/query/process_tracker.rs | diesel_models | impl_block | null | null | null | 39 | null | ProcessTracker | null | 6 | 0 | null | null |
// Function: add_api_key
// File: crates/router/src/services/authentication/decision.rs
// Module: router
pub fn add_api_key(
state: &SessionState,
api_key: Secret<String>,
merchant_id: common_utils::id_type::MerchantId,
key_id: common_utils::id_type::ApiKeyId,
expiry: Option<u64>,
) -> CustomResul... | crates/router/src/services/authentication/decision.rs | router | function_signature | null | null | null | 87 | add_api_key | null | null | null | null | null | null |
// File: crates/router/tests/connectors/trustpay.rs
// Module: router
use std::str::FromStr;
use hyperswitch_domain_models::address::{Address, AddressDetails};
use masking::Secret;
use router::types::{self, api, domain, storage::enums, BrowserInformation};
use crate::{
connector_auth,
utils::{self, Connector... | crates/router/tests/connectors/trustpay.rs | router | full_file | null | null | null | 1,762 | null | null | null | null | null | null | null |
// File: crates/api_models/src/payouts.rs
// Module: api_models
// Public functions: 1
// Public structs: 28
use std::collections::HashMap;
use cards::CardNumber;
use common_utils::{
consts::default_payouts_list_limit,
crypto, id_type, link_utils, payout_method_utils,
pii::{self, Email},
transformers:... | crates/api_models/src/payouts.rs#chunk0 | api_models | chunk | null | null | null | 8,185 | null | null | null | null | null | null | null |
// Implementation: impl MerchantConnectorAccountUpdateInternal
// File: crates/diesel_models/src/merchant_connector_account.rs
// Module: diesel_models
// Methods: 1 total (1 public)
impl MerchantConnectorAccountUpdateInternal | crates/diesel_models/src/merchant_connector_account.rs | diesel_models | impl_block | null | null | null | 46 | null | MerchantConnectorAccountUpdateInternal | null | 1 | 1 | null | null |
// Function: get_connector_choice
// File: crates/router/src/core/payouts.rs
// Module: router
pub fn get_connector_choice(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector: Option<String>,
routing_algorithm: Option<serde_json::Value>,
payout_data: &mut PayoutData,
el... | crates/router/src/core/payouts.rs | router | function_signature | null | null | null | 102 | get_connector_choice | null | null | null | null | null | null |
// Function: reset_totp
// File: crates/router/src/core/user.rs
// Module: router
pub fn reset_totp(
state: SessionState,
user_token: auth::UserFromToken,
) -> UserResponse<user_api::BeginTotpResponse> | crates/router/src/core/user.rs | router | function_signature | null | null | null | 57 | reset_totp | null | null | null | null | null | null |
// Function: create_payout_retrieve
// File: crates/router/src/core/payouts.rs
// Module: router
pub fn create_payout_retrieve(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector_data: &api::ConnectorData,
payout_data: &mut PayoutData,
) -> RouterResult<()> | crates/router/src/core/payouts.rs | router | function_signature | null | null | null | 76 | create_payout_retrieve | null | null | null | null | null | null |
// Implementation: impl api::PaymentCapture for for Gpayments
// File: crates/hyperswitch_connectors/src/connectors/gpayments.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentCapture for for Gpayments | crates/hyperswitch_connectors/src/connectors/gpayments.rs | hyperswitch_connectors | impl_block | null | null | null | 57 | null | Gpayments | api::PaymentCapture for | 0 | 0 | null | null |
// Implementation: impl api::PaymentAuthorize for for Payeezy
// File: crates/hyperswitch_connectors/src/connectors/payeezy.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentAuthorize for for Payeezy | crates/hyperswitch_connectors/src/connectors/payeezy.rs | hyperswitch_connectors | impl_block | null | null | null | 60 | null | Payeezy | api::PaymentAuthorize for | 0 | 0 | null | null |
// Implementation: impl api::PaymentVoid for for Worldline
// File: crates/hyperswitch_connectors/src/connectors/worldline.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentVoid for for Worldline | crates/hyperswitch_connectors/src/connectors/worldline.rs | hyperswitch_connectors | impl_block | null | null | null | 57 | null | Worldline | api::PaymentVoid for | 0 | 0 | null | null |
// Struct: EncryptionTransferRequest
// File: crates/common_utils/src/types/keymanager.rs
// Module: common_utils
// Implementations: 0
pub struct EncryptionTransferRequest | crates/common_utils/src/types/keymanager.rs | common_utils | struct_definition | EncryptionTransferRequest | 0 | [] | 37 | null | null | null | null | null | null | null |
// File: crates/hyperswitch_domain_models/src/callback_mapper.rs
// Module: hyperswitch_domain_models
// Public functions: 1
// Public structs: 1
use common_enums::enums as common_enums;
use common_types::callback_mapper::CallbackMapperData;
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct CallbackMapper {
pub i... | crates/hyperswitch_domain_models/src/callback_mapper.rs | hyperswitch_domain_models | full_file | null | null | null | 215 | null | null | null | null | null | null | null |
pub fn get_webhook_object_from_body(
body: &[u8],
) -> CustomResult<GetnetWebhookNotificationResponseBody, errors::ConnectorError> {
let body_bytes = bytes::Bytes::copy_from_slice(body);
let parsed_param: GetnetWebhookNotificationResponse =
parse_url_encoded_to_struct(body_bytes)
.change... | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs#chunk1 | hyperswitch_connectors | chunk | null | null | null | 824 | null | null | null | null | null | null | null |
// Struct: CardInfoAdd
// File: crates/router/src/core/cards_info.rs
// Module: router
// Implementations: 1
// Traits: State
pub struct CardInfoAdd | crates/router/src/core/cards_info.rs | router | struct_definition | CardInfoAdd | 1 | [
"State"
] | 40 | null | null | null | null | null | null | null |
// Implementation: impl common_utils::events::ApiEventMetric for for RelayRequest
// File: crates/api_models/src/relay.rs
// Module: api_models
// Methods: 0 total (0 public)
impl common_utils::events::ApiEventMetric for for RelayRequest | crates/api_models/src/relay.rs | api_models | impl_block | null | null | null | 57 | null | RelayRequest | common_utils::events::ApiEventMetric for | 0 | 0 | null | null |
// Function: refund_retrieve_core_with_internal_reference_id
// File: crates/router/src/core/refunds.rs
// Module: router
pub fn refund_retrieve_core_with_internal_reference_id(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id: Option<common_utils::id_type::ProfileId>,
refund_... | crates/router/src/core/refunds.rs | router | function_signature | null | null | null | 96 | refund_retrieve_core_with_internal_reference_id | null | null | null | null | null | null |
// Struct: PayoutEnabledPaymentMethodsInfo
// File: crates/api_models/src/payouts.rs
// Module: api_models
// Implementations: 0
pub struct PayoutEnabledPaymentMethodsInfo | crates/api_models/src/payouts.rs | api_models | struct_definition | PayoutEnabledPaymentMethodsInfo | 0 | [] | 43 | null | null | null | null | null | null | null |
// Struct: RefundResponse
// File: crates/api_models/src/refunds.rs
// Module: api_models
// Implementations: 2
pub struct RefundResponse | crates/api_models/src/refunds.rs | api_models | struct_definition | RefundResponse | 2 | [] | 36 | null | null | null | null | null | null | null |
// Struct: BraintreeRedirectionResponse
// File: crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct BraintreeRedirectionResponse | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | BraintreeRedirectionResponse | 0 | [] | 52 | null | null | null | null | null | null | null |
Ok((status, error, payment_response_data))
}
fn handle_bank_redirects_error_response(
response: ErrorResponseBankRedirect,
status_code: u16,
previous_attempt_status: enums::AttemptStatus,
) -> CustomResult<
(
enums::AttemptStatus,
Option<ErrorResponse>,
PaymentsResponseData,... | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs#chunk1 | hyperswitch_connectors | chunk | null | null | null | 8,183 | null | null | null | null | null | null | null |
// Struct: DwollaPaymentsRequest
// File: crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct DwollaPaymentsRequest | crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs | hyperswitch_connectors | struct_definition | DwollaPaymentsRequest | 0 | [] | 50 | null | null | null | null | null | null | null |
// Function: update
// File: crates/diesel_models/src/query/address.rs
// Module: diesel_models
pub fn update(
self,
conn: &PgPooledConn,
address_update_internal: AddressUpdateInternal,
) -> StorageResult<Self> | crates/diesel_models/src/query/address.rs | diesel_models | function_signature | null | null | null | 55 | update | null | null | null | null | null | null |
// Function: get_invoice_handler
// File: crates/router/src/core/subscription.rs
// Module: router
pub fn get_invoice_handler(&self) -> errors::RouterResult<InvoiceHandler> | crates/router/src/core/subscription.rs | router | function_signature | null | null | null | 40 | get_invoice_handler | null | null | null | null | null | null |
// File: crates/hyperswitch_connectors/src/connectors/authipay.rs
// Module: hyperswitch_connectors
// Public functions: 2
// Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
reque... | crates/hyperswitch_connectors/src/connectors/authipay.rs | hyperswitch_connectors | full_file | null | null | null | 6,326 | null | null | null | null | null | null | null |
// Function: unify_with_payment_method_data_billing
// File: crates/hyperswitch_domain_models/src/payment_address.rs
// Module: hyperswitch_domain_models
// Documentation: Here the fields passed in payment_method_data_billing takes precedence
pub fn unify_with_payment_method_data_billing(
self,
paymen... | crates/hyperswitch_domain_models/src/payment_address.rs | hyperswitch_domain_models | function_signature | null | null | null | 73 | unify_with_payment_method_data_billing | null | null | null | null | null | null |
// Implementation: impl behaviour::Conversion for for PaymentAttempt
// File: crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
// Module: hyperswitch_domain_models
// Methods: 3 total (0 public)
impl behaviour::Conversion for for PaymentAttempt | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | impl_block | null | null | null | 55 | null | PaymentAttempt | behaviour::Conversion for | 3 | 0 | null | null |
// Function: read
// File: crates/hsdev/src/input_file.rs
// Module: hsdev
pub fn read(db_table: &Value) -> Result<Self, toml::de::Error> | crates/hsdev/src/input_file.rs | hsdev | function_signature | null | null | null | 43 | read | null | null | null | null | null | null |
// Implementation: impl Digitalvirgo
// File: crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
// Module: hyperswitch_connectors
// Methods: 1 total (1 public)
impl Digitalvirgo | crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | hyperswitch_connectors | impl_block | null | null | null | 49 | null | Digitalvirgo | null | 1 | 1 | null | null |
// Function: check_tenant
// File: crates/router/src/services/authorization.rs
// Module: router
pub fn check_tenant(
token_tenant_id: Option<id_type::TenantId>,
header_tenant_id: &id_type::TenantId,
) -> RouterResult<()> | crates/router/src/services/authorization.rs | router | function_signature | null | null | null | 61 | check_tenant | null | null | null | null | null | null |
// Function: delete_gsm_rule
// File: crates/openapi/src/routes/gsm.rs
// Module: openapi
pub fn delete_gsm_rule() | crates/openapi/src/routes/gsm.rs | openapi | function_signature | null | null | null | 33 | delete_gsm_rule | null | null | null | null | null | null |
// Function: add_refund_sync_task
// File: crates/router/src/core/refunds.rs
// Module: router
pub fn add_refund_sync_task(
db: &dyn db::StorageInterface,
refund: &diesel_refund::Refund,
runner: storage::ProcessTrackerRunner,
) -> RouterResult<storage::ProcessTracker> | crates/router/src/core/refunds.rs | router | function_signature | null | null | null | 74 | add_refund_sync_task | null | null | null | null | null | null |
// Implementation: impl OrganizationNew
// File: crates/api_models/src/organization.rs
// Module: api_models
// Methods: 1 total (1 public)
impl OrganizationNew | crates/api_models/src/organization.rs | api_models | impl_block | null | null | null | 37 | null | OrganizationNew | null | 1 | 1 | null | null |
// Implementation: impl api::PaymentSync for for Gigadat
// File: crates/hyperswitch_connectors/src/connectors/gigadat.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentSync for for Gigadat | crates/hyperswitch_connectors/src/connectors/gigadat.rs | hyperswitch_connectors | impl_block | null | null | null | 61 | null | Gigadat | api::PaymentSync for | 0 | 0 | null | null |
// Trait: Feature
// File: crates/router/src/core/payments/flows.rs
// Module: router
pub trait Feature<F, T> | crates/router/src/core/payments/flows.rs | router | trait_definition | null | null | null | 30 | null | null | Feature | null | null | null | null |
// Struct: IncrementalAuthorizationDetails
// File: crates/router/src/core/payments.rs
// Module: router
// Implementations: 0
pub struct IncrementalAuthorizationDetails | crates/router/src/core/payments.rs | router | struct_definition | IncrementalAuthorizationDetails | 0 | [] | 37 | null | null | null | null | null | null | null |
// Function: update_connector
// File: crates/router/src/core/admin.rs
// Module: router
pub fn update_connector(
state: SessionState,
merchant_id: &id_type::MerchantId,
profile_id: Option<id_type::ProfileId>,
merchant_connector_id: &id_type::MerchantConnectorAccountId,
req: api_models::admin::Merc... | crates/router/src/core/admin.rs | router | function_signature | null | null | null | 94 | update_connector | null | null | null | null | null | null |
// Function: generate_permissions
// File: crates/router_derive/src/lib.rs
// Module: router_derive
pub fn generate_permissions(input: proc_macro::TokenStream) -> proc_macro::TokenStream | crates/router_derive/src/lib.rs | router_derive | function_signature | null | null | null | 42 | generate_permissions | null | null | null | null | null | null |
// Implementation: impl api::ConnectorAccessToken for for Itaubank
// File: crates/hyperswitch_connectors/src/connectors/itaubank.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::ConnectorAccessToken for for Itaubank | crates/hyperswitch_connectors/src/connectors/itaubank.rs | hyperswitch_connectors | impl_block | null | null | null | 61 | null | Itaubank | api::ConnectorAccessToken for | 0 | 0 | null | null |
// File: crates/storage_impl/src/redis/pub_sub.rs
// Module: storage_impl
use std::sync::atomic;
use error_stack::ResultExt;
use redis_interface::{errors as redis_errors, PubsubInterface, RedisValue};
use router_env::{logger, tracing::Instrument};
use crate::redis::cache::{
CacheKey, CacheKind, CacheRedact, ACCO... | crates/storage_impl/src/redis/pub_sub.rs | storage_impl | full_file | null | null | null | 1,729 | null | null | null | null | null | null | null |
// File: crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
// Module: hyperswitch_domain_models
// Public structs: 5
#[derive(Default, Clone, Debug)]
pub struct AcceptDisputeResponse {
pub dispute_status: api_models::enums::DisputeStatus,
pub connector_status: Option<String>,
}
#[derive(D... | crates/hyperswitch_domain_models/src/router_response_types/disputes.rs | hyperswitch_domain_models | full_file | null | null | null | 358 | null | null | null | null | null | null | null |
// File: crates/router/src/core/revenue_recovery/types.rs
// Module: router
// Public functions: 9
// Public structs: 1
use std::{marker::PhantomData, str::FromStr};
use api_models::{
enums as api_enums,
payments::{
AmountDetails, PaymentRevenueRecoveryMetadata, PaymentsUpdateIntentRequest,
Pr... | crates/router/src/core/revenue_recovery/types.rs#chunk0 | router | chunk | null | null | null | 8,192 | null | null | null | null | null | null | null |
// Function: get_connector_metadata
// File: crates/hyperswitch_domain_models/src/router_response_types.rs
// Module: hyperswitch_domain_models
pub fn get_connector_metadata(&self) -> Option<masking::Secret<serde_json::Value>> | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | function_signature | null | null | null | 52 | get_connector_metadata | null | null | null | null | null | null |
// Function: retrieve_default_routing_config
// File: crates/router/src/core/routing.rs
// Module: router
pub fn retrieve_default_routing_config(
state: SessionState,
profile_id: Option<common_utils::id_type::ProfileId>,
merchant_context: domain::MerchantContext,
transaction_type: &enums::TransactionTy... | crates/router/src/core/routing.rs | router | function_signature | null | null | null | 86 | retrieve_default_routing_config | null | null | null | null | null | null |
// Function: construct_invoice_record_back_router_data
// File: crates/router/src/core/revenue_recovery/types.rs
// Module: router
pub fn construct_invoice_record_back_router_data(
state: &SessionState,
billing_mca: &merchant_connector_account::MerchantConnectorAccount,
payment_attempt: &PaymentAttempt,
... | crates/router/src/core/revenue_recovery/types.rs | router | function_signature | null | null | null | 93 | construct_invoice_record_back_router_data | null | null | null | null | null | null |
// Implementation: impl events::ApiEventMetric for for DecisionManagerRequest
// File: crates/api_models/src/conditional_configs.rs
// Module: api_models
// Methods: 1 total (0 public)
impl events::ApiEventMetric for for DecisionManagerRequest | crates/api_models/src/conditional_configs.rs | api_models | impl_block | null | null | null | 54 | null | DecisionManagerRequest | events::ApiEventMetric for | 1 | 0 | null | null |
// Function: handle_webhook_response
// File: crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
// Module: hyperswitch_connectors
pub fn handle_webhook_response(
payment_information: WebhookPaymentInformation,
status_code: u16,
) -> CustomResult<
(
enums::AttemptStatus,
... | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | function_signature | null | null | null | 93 | handle_webhook_response | null | null | null | null | null | null |
// Implementation: impl Responder
// File: crates/router/src/analytics.rs
// Module: router
// Methods: 0 total (0 public)
impl Responder | crates/router/src/analytics.rs | router | impl_block | null | null | null | 35 | null | Responder | null | 0 | 0 | null | null |
// Function: verify_email
// File: crates/router/src/routes/user.rs
// Module: router
pub fn verify_email(
state: web::Data<AppState>,
http_req: HttpRequest,
json_payload: web::Json<user_api::VerifyEmailRequest>,
) -> HttpResponse | crates/router/src/routes/user.rs | router | function_signature | null | null | null | 59 | verify_email | null | null | null | null | null | null |
// Struct: DeutschebankMeansOfPayment
// File: crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct DeutschebankMeansOfPayment | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | DeutschebankMeansOfPayment | 0 | [] | 52 | null | null | null | null | null | null | null |
// File: crates/common_utils/src/id_type/routing.rs
// Module: common_utils
crate::id_type!(
RoutingId,
" A type for routing_id that can be used for routing ids"
);
crate::impl_id_type_methods!(RoutingId, "routing_id");
// This is to display the `RoutingId` as RoutingId(abcd)
crate::impl_debug_id_type!(Routi... | crates/common_utils/src/id_type/routing.rs | common_utils | full_file | null | null | null | 200 | null | null | null | null | null | null | null |
// Implementation: impl ClientSecretFetch for for PaymentMethodListRequest
// File: crates/router/src/services/authentication.rs
// Module: router
// Methods: 1 total (0 public)
impl ClientSecretFetch for for PaymentMethodListRequest | crates/router/src/services/authentication.rs | router | impl_block | null | null | null | 49 | null | PaymentMethodListRequest | ClientSecretFetch for | 1 | 0 | null | null |
// Function: new
// File: crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
// Module: hyperswitch_connectors
pub fn new(reference: String) -> Self | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | function_signature | null | null | null | 40 | new | null | null | null | null | null | null |
// Function: create_client
// File: crates/external_services/src/email/ses.rs
// Module: external_services
// Documentation: A helper function to create ses client
pub fn create_client(
conf: &EmailSettings,
ses_config: &SESConfig,
proxy_url: Option<impl AsRef<str>>,
) -> CustomResult<Clie... | crates/external_services/src/email/ses.rs | external_services | function_signature | null | null | null | 80 | create_client | null | null | null | null | null | null |
// Implementation: impl Tokenizable for for PaymentsAuthorizeData
// File: crates/router/src/types.rs
// Module: router
// Methods: 1 total (0 public)
impl Tokenizable for for PaymentsAuthorizeData | crates/router/src/types.rs | router | impl_block | null | null | null | 44 | null | PaymentsAuthorizeData | Tokenizable for | 1 | 0 | null | null |
// Struct: PostProcessing
// File: crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct PostProcessing | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | PostProcessing | 0 | [] | 43 | null | null | null | null | null | null | null |
// Implementation: impl UserCompanyName
// File: crates/router/src/types/domain/user.rs
// Module: router
// Methods: 2 total (2 public)
impl UserCompanyName | crates/router/src/types/domain/user.rs | router | impl_block | null | null | null | 36 | null | UserCompanyName | null | 2 | 2 | null | null |
// Struct: FrmRoutingAlgorithm
// File: crates/router/src/types/api/routing.rs
// Module: router
// Implementations: 0
pub struct FrmRoutingAlgorithm | crates/router/src/types/api/routing.rs | router | struct_definition | FrmRoutingAlgorithm | 0 | [] | 36 | null | null | null | null | null | null | null |
// File: crates/diesel_models/src/process_tracker.rs
// Module: diesel_models
// Public functions: 2
// Public structs: 3
pub use common_enums::{enums::ProcessTrackerRunner, ApiVersion};
use common_utils::ext_traits::Encode;
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use error_stack::R... | crates/diesel_models/src/process_tracker.rs | diesel_models | full_file | null | null | null | 2,442 | null | null | null | null | null | null | null |
// Struct: PoEligibility
// File: crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct PoEligibility | crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs | hyperswitch_domain_models | struct_definition | PoEligibility | 0 | [] | 48 | null | null | null | null | null | null | null |
// Implementation: impl RemoveNewLine for for Option
// File: crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
// Module: hyperswitch_connectors
// Methods: 1 total (0 public)
impl RemoveNewLine for for Option | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Option | RemoveNewLine for | 1 | 0 | null | null |
// Implementation: impl api::RefundExecute for for Tsys
// File: crates/hyperswitch_connectors/src/connectors/tsys.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::RefundExecute for for Tsys | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | null | null | null | 59 | null | Tsys | api::RefundExecute for | 0 | 0 | null | null |
// Function: new
// File: crates/test_utils/src/connector_auth.rs
// Module: test_utils
pub fn new() -> Self | crates/test_utils/src/connector_auth.rs | test_utils | function_signature | null | null | null | 29 | new | null | null | null | null | null | null |
// Function: new
// File: crates/hyperswitch_connectors/src/connectors/coingate.rs
// Module: hyperswitch_connectors
pub fn new() -> &'static Self | crates/hyperswitch_connectors/src/connectors/coingate.rs | hyperswitch_connectors | function_signature | null | null | null | 39 | new | null | null | null | null | null | null |
// Struct: PartnerReferralResponse
// File: crates/router/src/types/api/connector_onboarding/paypal.rs
// Module: router
// Implementations: 1
pub struct PartnerReferralResponse | crates/router/src/types/api/connector_onboarding/paypal.rs | router | struct_definition | PartnerReferralResponse | 1 | [] | 42 | null | null | null | null | null | null | null |
// Function: find_by_merchant_id_payout_id
// File: crates/diesel_models/src/query/payout_attempt.rs
// Module: diesel_models
pub fn find_by_merchant_id_payout_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
payout_id: &common_utils::id_type::PayoutId,
) -> Storage... | crates/diesel_models/src/query/payout_attempt.rs | diesel_models | function_signature | null | null | null | 88 | find_by_merchant_id_payout_id | null | null | null | null | null | null |
// Struct: WiseRecipientCreateRequest
// File: crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct WiseRecipientCreateRequest | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | WiseRecipientCreateRequest | 0 | [] | 49 | null | null | null | null | null | null | null |
// Function: new
// File: crates/hyperswitch_connectors/src/connectors/adyen.rs
// Module: hyperswitch_connectors
pub fn new() -> &'static Self | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | function_signature | null | null | null | 39 | new | null | null | null | null | null | null |
// Implementation: impl webhooks::IncomingWebhook for for Dwolla
// File: crates/hyperswitch_connectors/src/connectors/dwolla.rs
// Module: hyperswitch_connectors
// Methods: 6 total (0 public)
impl webhooks::IncomingWebhook for for Dwolla | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | null | null | null | 62 | null | Dwolla | webhooks::IncomingWebhook for | 6 | 0 | null | null |
// Implementation: impl quote::ToTokens for for FieldMeta
// File: crates/router_derive/src/macros/to_encryptable.rs
// Module: router_derive
// Methods: 1 total (0 public)
impl quote::ToTokens for for FieldMeta | crates/router_derive/src/macros/to_encryptable.rs | router_derive | impl_block | null | null | null | 54 | null | FieldMeta | quote::ToTokens for | 1 | 0 | null | null |
// Module Structure
// File: crates/hyperswitch_connectors/src/connectors/vgs.rs
// Module: hyperswitch_connectors
// Public submodules:
pub mod transformers;
| crates/hyperswitch_connectors/src/connectors/vgs.rs | hyperswitch_connectors | module_structure | null | null | null | 38 | null | null | null | null | null | 1 | 0 |
// Struct: StripeConnectPayoutCreateRequest
// File: crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct StripeConnectPayoutCreateRequest | crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs | hyperswitch_connectors | struct_definition | StripeConnectPayoutCreateRequest | 0 | [] | 54 | 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.