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
File: crates/diesel_models/src/query/dashboard_metadata.rs Public functions: 6 use common_utils::id_type; use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use crate::{ enums, query::generics, schema::dashboard_metadata::dsl, user::dashboard_metadata::{ Dashboard...
crates/diesel_models/src/query/dashboard_metadata.rs
diesel_models
full_file
956
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Cryptopay {}
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
10
rust
null
Cryptopay
api::Refund for
impl api::Refund for for Cryptopay
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<ApiKey> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/api_keys.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct PaymentMethodDeleteResponse { /// The unique identifier of the Payment method #[schema(value_type = String, example = "12345_pm_01926c58bc6e77c09e809964e72af8c8")] pub id: id_type::GlobalPaymentMethodId, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
79
rust
PaymentMethodDeleteResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Netcetera;
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
struct_definition
7
rust
Netcetera
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
11
rust
null
HyperswitchVault
api::PaymentSync for
impl api::PaymentSync for for HyperswitchVault
null
null
null
null
null
null
null
null
impl api::Payment for Xendit {}
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
9
rust
null
Xendit
api::Payment for
impl api::Payment for for Xendit
null
null
null
null
null
null
null
null
pub struct DetailTax { #[serde(skip_serializing_if = "Option::is_none")] pub tax_included_in_total: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] pub tax_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub card_acceptor_tax_id: Option<Secret<String>...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
82
rust
DetailTax
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiKeyAuthWithMerchantIdFromRoute(pub id_type::MerchantId);
crates/router/src/services/authentication.rs
router
struct_definition
17
rust
ApiKeyAuthWithMerchantIdFromRoute
null
null
null
null
null
null
null
null
null
null
null
pub struct OrderAddress { first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, address1: Option<Secret<String>>, country_code: Option<common_enums::CountryAlpha2>, city: Option<String>, province: Option<Secret<String>>, phone: Option<Secret<String>>, zip: Option<Secret<...
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
77
rust
OrderAddress
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MandateResponse { "type": "object", "required": [ "mandate_id", "status", "payment_method_id", "payment_method" ], "properties": { "mandate_id": { "type": "string", "description": "The identifier for mandate" }, "status": { "$r...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
268
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MandateResponse" ]
null
null
null
null
impl ConnectorCommon for Adyen { fn id(&self) -> &'static str { "adyen" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn get_auth_header( &self, auth_type: &ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, err...
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
371
rust
null
Adyen
ConnectorCommon for
impl ConnectorCommon for for Adyen
null
null
null
null
null
null
null
null
impl ApiEventMetric for CardInfoUpdateRequest {}
crates/api_models/src/cards_info.rs
api_models
impl_block
10
rust
null
CardInfoUpdateRequest
ApiEventMetric for
impl ApiEventMetric for for CardInfoUpdateRequest
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentsCancelRequest { "type": "object", "properties": { "cancellation_reason": { "type": "string", "description": "The reason for the payment cancel", "nullable": true }, "merchant_connector_details": { "allOf": [ { "$ref...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
105
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentsCancelRequest" ]
null
null
null
null
OpenAPI Block Path: paths."/customers/{customer_id}/payment_methods" { "get": { "tags": [ "Payment Methods" ], "summary": "List payment methods for a Customer", "description": "Lists all the applicable payment methods for a particular Customer ID.", "operationId": "List all Payment Methods f...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
836
.json
null
null
null
null
null
openapi_spec
paths
[ "/customers/{customer_id}/payment_methods" ]
null
null
null
null
pub async fn add_refund_sync_task( db: &dyn db::StorageInterface, refund: &diesel_refund::Refund, runner: storage::ProcessTrackerRunner, ) -> errors::RouterResult<storage::ProcessTracker> { let task = "SYNC_REFUND"; let process_tracker_id = format!("{runner}_{task}_{}", refund.id.get_string_repr());...
crates/router/src/core/refunds_v2.rs
router
function_signature
299
rust
null
null
null
null
add_refund_sync_task
null
null
null
null
null
null
null
pub async fn filter_payment_methods( graph: &cgraph::ConstraintGraph<dir::DirValue>, mca_id: id_type::MerchantConnectorAccountId, payment_methods: &[Secret<serde_json::Value>], req: &mut api::PaymentMethodListRequest, resp: &mut Vec<ResponsePaymentMethodIntermediate>, payment_intent: Option<&sto...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
1,714
rust
null
null
null
null
filter_payment_methods
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs Public structs: 4 #[derive(Debug, Clone)] pub struct PreAuthenticate; #[derive(Debug, Clone)] pub struct PostAuthenticate; #[derive(Debug, Clone)] pub struct AuthenticationConfirmation; #[derive(Debug, Clone)] pub struct...
crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs
hyperswitch_domain_models
full_file
68
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Redsys {}
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
impl_block
9
rust
null
Redsys
api::PaymentCapture for
impl api::PaymentCapture for for Redsys
null
null
null
null
null
null
null
null
pub struct TokenDetails { pub payment_token: cards::CardNumber, pub payment_account_reference: String, pub token_expiration_month: Secret<String>, pub token_expiration_year: Secret<String>, }
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
44
rust
TokenDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PostProcessing;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
PostProcessing
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_recon_token( state: SessionState, user_with_role: authentication::UserFromTokenWithRoleInfo, ) -> RouterResponse<recon_api::ReconTokenResponse> { let user = user_with_role.user; let token = authentication::ReconToken::new_token( user.user_id.clone(), user.merchant_i...
crates/router/src/core/recon.rs
router
function_signature
221
rust
null
null
null
null
generate_recon_token
null
null
null
null
null
null
null
pub async fn get_api_event<T>( merchant_id: &common_utils::id_type::MerchantId, query_param: ApiLogsRequest, pool: &T, ) -> FiltersResult<Vec<ApiLogsResult>> where T: AnalyticsDataSource + ApiLogsFilterAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection: ToSql<T>, Granularity: GroupB...
crates/analytics/src/api_event/events.rs
analytics
function_signature
587
rust
null
null
null
null
get_api_event
null
null
null
null
null
null
null
File: crates/router/src/types/storage/unified_translations.rs pub use diesel_models::unified_translations::{ UnifiedTranslations, UnifiedTranslationsNew, UnifiedTranslationsUpdate, UnifiedTranslationsUpdateInternal, };
crates/router/src/types/storage/unified_translations.rs
router
full_file
42
null
null
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Elavon { 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/elavon.rs
hyperswitch_connectors
impl_block
211
rust
null
Elavon
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Elavon
null
null
null
null
null
null
null
null
impl api::MandateSetup for Boku {}
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
11
rust
null
Boku
api::MandateSetup for
impl api::MandateSetup for for Boku
null
null
null
null
null
null
null
null
File: crates/router/src/utils/connector_onboarding.rs Public functions: 5 use diesel_models::{ConfigNew, ConfigUpdate}; use error_stack::ResultExt; use super::errors::StorageErrorExt; use crate::{ consts, core::errors::{ApiErrorResponse, NotImplementedMessage, RouterResult}, routes::{app::settings, Sessi...
crates/router/src/utils/connector_onboarding.rs
router
full_file
1,001
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> Self { Self { method: Method::Get, url: String::with_capacity(1024), headers: std::collections::HashSet::new(), certificate: None, certificate_key: None, body: None, ca_certificate: None, } }
crates/common_utils/src/request.rs
common_utils
function_signature
67
rust
null
null
null
null
new
null
null
null
null
null
null
null
/// ConditionalConfigs pub struct ConditionalConfigs { /// Override 3DS pub override_3ds: Option<common_enums::AuthenticationType>, }
crates/common_types/src/payments.rs
common_types
struct_definition
33
rust
ConditionalConfigs
null
null
null
null
null
null
null
null
null
null
null
pub struct StripePaymentCancelRequest { cancellation_reason: Option<CancellationReason>, }
crates/router/src/compatibility/stripe/setup_intents/types.rs
router
struct_definition
17
rust
StripePaymentCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn upload_file_to_user_theme_storage( state: web::Data<AppState>, req: HttpRequest, path: web::Path<String>, MultipartForm(payload)
crates/router/src/routes/user/theme.rs
router
function_signature
38
rust
null
null
null
null
upload_file_to_user_theme_storage
null
null
null
null
null
null
null
impl DebitRoutingDecisionData { pub fn apply_debit_routing_decision<F, D>(&self, payment_data: &mut D) where F: Send + Clone, D: OperationSessionGetters<F> + OperationSessionSetters<F> + Send + Sync + Clone, { payment_data.set_card_network(self.card_network.clone()); self.deb...
crates/router/src/core/routing/helpers.rs
router
impl_block
105
rust
null
DebitRoutingDecisionData
null
impl DebitRoutingDecisionData
null
null
null
null
null
null
null
null
pub async fn publish_revenue_recovery_event_to_kafka( state: &SessionState, recovery_payment_tuple: &Self, retry_count: Option<i32>, ) -> CustomResult<(), errors::RevenueRecoveryError> { let recovery_payment_intent = &recovery_payment_tuple.0; let recovery_payment_attempt = &...
crates/router/src/core/webhooks/recovery_incoming.rs
router
function_signature
782
rust
null
null
null
null
publish_revenue_recovery_event_to_kafka
null
null
null
null
null
null
null
pub(super) fn get_customer_details_from_request( request: &payouts::PayoutCreateRequest, ) -> CustomerDetails { let customer_id = request.get_customer_id().map(ToOwned::to_owned); let customer_name = request .customer .as_ref() .and_then(|customer_details| customer_details.name.clon...
crates/router/src/core/payouts/helpers.rs
router
function_signature
270
rust
null
null
null
null
get_customer_details_from_request
null
null
null
null
null
null
null
pub struct GlobalRefundId(super::GlobalId);
crates/common_utils/src/id_type/global_id/refunds.rs
common_utils
struct_definition
11
rust
GlobalRefundId
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_user_id(conn: &PgPooledConn, user_id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, users_dsl::user_id.eq(user_id.to_owned()), ) .await }
crates/diesel_models/src/query/user.rs
diesel_models
function_signature
69
rust
null
null
null
null
find_by_user_id
null
null
null
null
null
null
null
Documentation: api-reference/v2/payments/payments--create-intent.mdx # Type: Doc File --- openapi: post /v2/payments/create-intent ---
api-reference/v2/payments/payments--create-intent.mdx
null
doc_file
38
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl Barclaycard { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
35
rust
null
Barclaycard
null
impl Barclaycard
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type.rs Public functions: 3 //! Common ID types //! The id type can be used to create specific id types with custom behaviour mod api_key; mod authentication; mod client_secret; mod customer; #[cfg(feature = "v2")] mod global_id; mod merchant; mod merchant_connector_account; mod orga...
crates/common_utils/src/id_type.rs
common_utils
full_file
2,776
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpayvantiv
api::Payment for
impl api::Payment for for Worldpayvantiv
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Datatrans { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&DATATRANS_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*DATATRANS_SUPPORTED_PAYMENT_METHODS) } fn ge...
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
impl_block
116
rust
null
Datatrans
ConnectorSpecifications for
impl ConnectorSpecifications for for Datatrans
null
null
null
null
null
null
null
null
pub async fn mock_delete_card_hs<'a>( db: &dyn db::StorageInterface, card_id: &'a str, ) -> errors::CustomResult<payment_methods::DeleteCardResp, errors::VaultError> { db.delete_locker_mock_up(card_id) .await .change_context(errors::VaultError::FetchCardFailed)?; Ok(payment_methods::Dele...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
108
rust
null
null
null
null
mock_delete_card_hs
null
null
null
null
null
null
null
pub struct PaymentAuthRouterData<F, Request, Response> { pub flow: PhantomData<F>, pub merchant_id: Option<id_type::MerchantId>, pub connector: Option<String>, pub request: Request, pub response: Result<Response, ErrorResponse>, pub connector_auth_type: ConnectorAuthType, pub connector_http_...
crates/pm_auth/src/types.rs
pm_auth
struct_definition
79
rust
PaymentAuthRouterData
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/blocklist.rs Public functions: 4 #[utoipa::path( post, path = "/blocklist/toggle", params ( ("status" = bool, Query, description = "Boolean value to enable/disable blocklist"), ), responses( (status = 200, description = "Blocklist guard enabled/disab...
crates/openapi/src/routes/blocklist.rs
openapi
full_file
479
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
11
rust
null
Authorizedotnet
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Authorizedotnet
null
null
null
null
null
null
null
null
pub struct WorldpayCompleteAuthorizationRequest { #[serde(skip_serializing_if = "Option::is_none")] pub collection_reference: Option<String>, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
31
rust
WorldpayCompleteAuthorizationRequest
null
null
null
null
null
null
null
null
null
null
null
impl CurrentBlockThreshold { pub fn update(&mut self, new: Self) { if let Some(max_total_count) = new.max_total_count { self.max_total_count = Some(max_total_count) } } }
crates/api_models/src/routing.rs
api_models
impl_block
48
rust
null
CurrentBlockThreshold
null
impl CurrentBlockThreshold
null
null
null
null
null
null
null
null
pub struct BraintreeRefundInput { transaction_id: String, refund: RefundInputData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
BraintreeRefundInput
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_theme(state: SessionState, theme_id: String) -> UserResponse<()> { state .store .delete_theme_by_theme_id(theme_id.clone()) .await .to_not_found_response(UserErrors::ThemeNotFound)?; // TODO (#6717): Delete theme folder from the theme storage. // Currentl...
crates/router/src/core/user/theme.rs
router
function_signature
115
rust
null
null
null
null
delete_theme
null
null
null
null
null
null
null
pub async fn call_connector_payout( state: &SessionState, merchant_context: &domain::MerchantContext, connector_data: &api::ConnectorData, payout_data: &mut PayoutData, ) -> RouterResult<()> { let payout_attempt = &payout_data.payout_attempt.to_owned(); let payouts = &payout_data.payouts.to_owne...
crates/router/src/core/payouts.rs
router
function_signature
731
rust
null
null
null
null
call_connector_payout
null
null
null
null
null
null
null
File: crates/diesel_models/src/payment_methods_session.rs Public functions: 1 Public structs: 2 use common_utils::pii; #[cfg(feature = "v2")] #[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodSession { pub id: common_utils::id_type::GlobalPaymentMethodSessionId, pub custo...
crates/diesel_models/src/payment_methods_session.rs
diesel_models
full_file
517
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn revoke_api_key( state: &SessionState, api_key: Secret<String>, ) -> CustomResult<(), ApiClientError> { let decision_config = if let Some(config) = &state.conf.decision { config } else { return Ok(()); }; let rule = RuleDeleteRequest { tag: state.tenant.schem...
crates/router/src/services/authentication/decision.rs
router
function_signature
110
rust
null
null
null
null
revoke_api_key
null
null
null
null
null
null
null
pub struct OutgoingWebhookRetryProcessTrackerMapping { /// Default (fallback) retry configuration used when no merchant-specific retry configuration /// exists. pub default_mapping: RetryMapping, /// Merchant-specific retry configuration. pub custom_merchant_mapping: HashMap<common_utils::id_type::...
crates/scheduler/src/consumer/types/process_data.rs
scheduler
struct_definition
68
rust
OutgoingWebhookRetryProcessTrackerMapping
null
null
null
null
null
null
null
null
null
null
null
pub fn build_form_from_struct<T: Serialize>(data: T) -> Result<Form, common_errors::ParsingError> { let mut form = Form::new(); let serialized = serde_json::to_value(&data).map_err(|e| { router_env::logger::error!("Error serializing data to JSON value: {:?}", e); common_errors::ParsingError::Enc...
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
function_signature
250
rust
null
null
null
null
build_form_from_struct
null
null
null
null
null
null
null
impl Settings<SecuredSecret> { pub fn new() -> Result<Self, errors::DrainerError> { Self::with_config_path(None) } pub fn with_config_path(config_path: Option<PathBuf>) -> Result<Self, errors::DrainerError> { // Configuration values are picked up in the following priority order (1 being lea...
crates/drainer/src/settings.rs
drainer
impl_block
667
rust
null
Settings
null
impl Settings
null
null
null
null
null
null
null
null
pub struct ErrorData { pub message: String, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
12
rust
ErrorData
null
null
null
null
null
null
null
null
null
null
null
impl DisputeSync for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpayvantiv
DisputeSync for
impl DisputeSync for for Worldpayvantiv
null
null
null
null
null
null
null
null
pub struct ResultData { pub redirect_url: Option<Secret<url::Url>>, pub status: NovalnetAPIStatus, pub status_code: u64, pub status_text: String, pub additional_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
53
rust
ResultData
null
null
null
null
null
null
null
null
null
null
null
pub trait NetworkTokenWebhookResponseExt { fn decrypt_payment_method_data( &self, payment_method: &domain::PaymentMethod, ) -> CustomResult<api::payment_methods::CardDetailFromLocker, errors::ApiErrorResponse>; async fn update_payment_method( &self, state: &SessionState, ...
crates/router/src/core/webhooks/network_tokenization_incoming.rs
router
trait_definition
106
rust
null
null
NetworkTokenWebhookResponseExt
null
null
null
null
null
null
null
null
null
pub async fn signal_handler(_sig: DummySignal, _sender: mpsc::Sender<()
crates/common_utils/src/signals.rs
common_utils
function_signature
20
rust
null
null
null
null
signal_handler
null
null
null
null
null
null
null
File: crates/router/src/core/payment_methods/validator.rs Public functions: 2 use api_models::{admin, payment_methods::PaymentMethodCollectLinkRequest}; use common_utils::link_utils; use diesel_models::generic_link::PaymentMethodCollectLinkData; use error_stack::ResultExt; use masking::Secret; use crate::{ const...
crates/router/src/core/payment_methods/validator.rs
router
full_file
1,145
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Trustpayments {}
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
impl_block
9
rust
null
Trustpayments
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Trustpayments
null
null
null
null
null
null
null
null
pub struct CancelResponseData { reverse_transaction: CancelTransactionData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
CancelResponseData
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Subscription> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/subscription.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ResponsePaymentMethodTypes { "type": "object", "required": [ "payment_method_type" ], "properties": { "payment_method_type": { "$ref": "#/components/schemas/PaymentMethodType" }, "payment_experience": { "type": "array", "items": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
482
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ResponsePaymentMethodTypes" ]
null
null
null
null
pub struct PaymentConfirm;
crates/router/src/core/payments/operations/payment_confirm.rs
router
struct_definition
5
rust
PaymentConfirm
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn modify_trackers<F, FData, D>( state: &routes::SessionState, connector: String, payment_data: &mut D, key_store: &domain::MerchantKeyStore, storage_scheme: storage_enums::MerchantStorageScheme, router_data: types::RouterData<F, FData, types::PaymentsResponseData>, is_step_up: boo...
crates/router/src/core/payments/retry.rs
router
function_signature
136
rust
null
null
null
null
modify_trackers
null
null
null
null
null
null
null
pub struct Jpmorgan { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
struct_definition
27
rust
Jpmorgan
null
null
null
null
null
null
null
null
null
null
null
pub async fn mock_get_card<'a>( db: &dyn db::StorageInterface, card_id: &'a str, ) -> errors::CustomResult<(payment_methods::GetCardResponse, Option<String>), errors::VaultError> { let locker_mock_up = db .find_locker_by_card_id(card_id) .await .change_context(errors::VaultError::Fet...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
337
rust
null
null
null
null
mock_get_card
null
null
null
null
null
null
null
pub struct DisputeMetricsBucketValue { pub disputes_challenged: Option<u64>, pub disputes_won: Option<u64>, pub disputes_lost: Option<u64>, pub disputed_amount: Option<u64>, pub dispute_lost_amount: Option<u64>, pub total_dispute: Option<u64>, }
crates/api_models/src/analytics/disputes.rs
api_models
struct_definition
74
rust
DisputeMetricsBucketValue
null
null
null
null
null
null
null
null
null
null
null
impl fred::types::FromRedis for DelReply { fn from_value(value: fred::types::RedisValue) -> Result<Self, fred::error::RedisError> { match value { fred::types::RedisValue::Integer(1) => Ok(Self::KeyDeleted), fred::types::RedisValue::Integer(0) => Ok(Self::KeyNotDeleted), _...
crates/redis_interface/src/types.rs
redis_interface
impl_block
118
rust
null
DelReply
fred::types::FromRedis for
impl fred::types::FromRedis for for DelReply
null
null
null
null
null
null
null
null
impl PaymentIntentFetchConstraints { pub fn get_profile_id_list(&self) -> Option<Vec<id_type::ProfileId>> { if let Self::List(pi_list_params) = self { pi_list_params.profile_id.clone() } else { None } } }
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
impl_block
60
rust
null
PaymentIntentFetchConstraints
null
impl PaymentIntentFetchConstraints
null
null
null
null
null
null
null
null
pub struct RapydIncomingWebhook { pub id: String, #[serde(rename = "type")] pub webhook_type: RapydWebhookObjectEventType, pub data: WebhookData, pub trigger_operation_id: Option<String>, pub status: String, pub created_at: i64, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
69
rust
RapydIncomingWebhook
null
null
null
null
null
null
null
null
null
null
null
impl CardInfoBuilder<CardInfoFetch> { fn new() -> Self { Self { state: std::marker::PhantomData, card_info: None, } } }
crates/router/src/core/cards_info.rs
router
impl_block
41
rust
null
CardInfoBuilder
null
impl CardInfoBuilder
null
null
null
null
null
null
null
null
impl OrganizationBridge for OrganizationNew { fn get_organization_id(&self) -> id_type::OrganizationId { self.org_id.clone() } fn get_organization_name(&self) -> Option<String> { self.org_name.clone() } fn set_organization_name(&mut self, organization_name: String) { self.org...
crates/diesel_models/src/organization.rs
diesel_models
impl_block
79
rust
null
OrganizationNew
OrganizationBridge for
impl OrganizationBridge for for OrganizationNew
null
null
null
null
null
null
null
null
impl PaymentCapture for Signifyd {}
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
8
rust
null
Signifyd
PaymentCapture for
impl PaymentCapture for for Signifyd
null
null
null
null
null
null
null
null
impl ApiEventMetric for CurrencyConversionParams {}
crates/api_models/src/currency.rs
api_models
impl_block
9
rust
null
CurrencyConversionParams
ApiEventMetric for
impl ApiEventMetric for for CurrencyConversionParams
null
null
null
null
null
null
null
null
impl api::Payment for Paypal {}
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
7
rust
null
Paypal
api::Payment for
impl api::Payment for for Paypal
null
null
null
null
null
null
null
null
impl ApplePayPredecryptData { /// Get the four-digit expiration year from the Apple Pay pre-decrypt data pub fn get_two_digit_expiry_year(&self) -> Result<Secret<String>, errors::ValidationError> { let binding = self.application_expiration_year.clone(); let year = binding.peek(); Ok(Secr...
crates/common_types/src/payments.rs
common_types
impl_block
436
rust
null
ApplePayPredecryptData
null
impl ApplePayPredecryptData
null
null
null
null
null
null
null
null
/// Get the encrypted Apple Pay payment data if it exists pub fn get_encrypted_apple_pay_payment_data_optional(&self) -> Option<&String> { match self { Self::Encrypted(encrypted_data) => Some(encrypted_data), Self::Decrypted(_) => None, } }
crates/common_types/src/payments.rs
common_types
function_signature
65
rust
null
null
null
null
get_encrypted_apple_pay_payment_data_optional
null
null
null
null
null
null
null
pub struct MollieCardTokenRequest { card_holder: Secret<String>, card_number: CardNumber, card_cvv: Secret<String>, card_expiry_date: Secret<String>, locale: String, testmode: bool, profile_token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
58
rust
MollieCardTokenRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_by_merchant_id_payout_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payout_id: &common_utils::id_type::PayoutId, payout: PayoutAttemptUpdate, ) -> StorageResult<Self> { generics::generic_update_with_results::<<Self as HasTable>:...
crates/diesel_models/src/query/payout_attempt.rs
diesel_models
function_signature
175
rust
null
null
null
null
update_by_merchant_id_payout_id
null
null
null
null
null
null
null
pub async fn handle_action( &self, state: &SessionState, business_profile: &domain::Profile, merchant_context: &domain::MerchantContext, billing_connector_account: &hyperswitch_domain_models::merchant_connector_account::MerchantConnectorAccount, mca_retry_threshold: u16, ...
crates/router/src/core/webhooks/recovery_incoming.rs
router
function_signature
104
rust
null
null
null
null
handle_action
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_convertor: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetPaymentFilters; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req, _| async move { let org_id = auth.merchant_account.get...
crates/router/src/analytics.rs
router
impl_block
227
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub fn get_connector_config( connector: Connector, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { Connector::Aci => Ok(connector_data.aci), Connector::Authipay => Ok(connector_data.authipay), Connect...
crates/connector_configs/src/connector.rs
connector_configs
function_signature
1,956
rust
null
null
null
null
get_connector_config
null
null
null
null
null
null
null
impl CustomerResponse { pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> { Some(self.customer_id.clone()) } }
crates/api_models/src/customers.rs
api_models
impl_block
34
rust
null
CustomerResponse
null
impl CustomerResponse
null
null
null
null
null
null
null
null
pub async fn list_initial_delivery_attempts( state: SessionState, merchant_id: common_utils::id_type::MerchantId, api_constraints: api::webhook_events::EventListConstraints, ) -> RouterResponse<api::webhook_events::TotalEventsResponse> { let profile_id = api_constraints.profile_id.clone(); let const...
crates/router/src/core/webhooks/webhook_events.rs
router
function_signature
1,262
rust
null
null
null
null
list_initial_delivery_attempts
null
null
null
null
null
null
null
impl api::PaymentToken for Barclaycard {}
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
10
rust
null
Barclaycard
api::PaymentToken for
impl api::PaymentToken for for Barclaycard
null
null
null
null
null
null
null
null
pub struct AccessTokenAuth;
crates/hyperswitch_domain_models/src/router_flow_types/access_token_auth.rs
hyperswitch_domain_models
struct_definition
5
rust
AccessTokenAuth
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
9
rust
null
Hyperwallet
api::PaymentCapture for
impl api::PaymentCapture for for Hyperwallet
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: Payouts) -> Payouts { let PayoutsUpdateInternal { amount, destination_currency, source_currency, description, recurring, auto_fulfill, return_url, entity_type, metadat...
crates/diesel_models/src/payouts.rs
diesel_models
function_signature
307
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
pub struct ProcessedAmountAccumulator { pub count_with_retries: Option<i64>, pub total_with_retries: Option<i64>, pub count_without_retries: Option<i64>, pub total_without_retries: Option<i64>, }
crates/analytics/src/payments/accumulator.rs
analytics
struct_definition
58
rust
ProcessedAmountAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub async fn default_specific_dynamic_routing_setup( state: &SessionState, key_store: domain::MerchantKeyStore, business_profile: domain::Profile, feature_to_enable: routing_types::DynamicRoutingFeatures, mut dynamic_routing_algo_ref: routing_types::DynamicRoutingAlgorithmRef, dynamic_routing_ty...
crates/router/src/core/routing/helpers.rs
router
function_signature
831
rust
null
null
null
null
default_specific_dynamic_routing_setup
null
null
null
null
null
null
null
pub struct TxnData { #[serde(rename = "RequestURL")] pub request_url: String, pub request_type: RequestType, pub request_data: RequestData, pub request_method: String, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
46
rust
TxnData
null
null
null
null
null
null
null
null
null
null
null
pub struct VecLinearErrorStack<'a>(Vec<LinearErrorStack<'a>>);
crates/router/src/core/errors.rs
router
struct_definition
18
rust
VecLinearErrorStack
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalLinks { href: Option<Url>, rel: String, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PaypalLinks
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingAddress { pub email: Email, pub first_name: Option<Secret<String>>, pub last_name: Option<Secret<String>>, pub country: api_models::enums::CountryAlpha2, pub phone: Option<Secret<String>>, pub city: Option<Secret<String>>, pub address: Option<Secret<String>>, pub street...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
161
rust
BillingAddress
null
null
null
null
null
null
null
null
null
null
null