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 const fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct ReturnUrl { pub success_url: Option<String>, pub failure_url: Option<String>, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
ReturnUrl
null
null
null
null
null
null
null
null
null
null
null
/// The latest git tag. If tags are not present in the repository, the short commit hash is used /// instead. Refer to the [`git describe`](https://git-scm.com/docs/git-describe) documentation for /// more details. #[macro_export] macro_rules! git_tag { () => { env!("VERGEN_GIT_DESCRIBE") }; }
crates/router_env/src/env.rs
router_env
macro
78
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
pub(super) struct SerializeMap<T: Serializer> { inner: <serde_json::value::Serializer as Serializer>::SerializeMap, ser: T, }
crates/masking/src/serde.rs
masking
struct_definition
34
rust
SerializeMap
null
null
null
null
null
null
null
null
null
null
null
impl NuveiPaymentsGenericResponse for Void {}
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
impl_block
10
rust
null
Void
NuveiPaymentsGenericResponse for
impl NuveiPaymentsGenericResponse for for Void
null
null
null
null
null
null
null
null
pub struct BluesnapCreateWalletToken { wallet_type: String, validation_url: Secret<String>, domain_name: String, display_name: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
BluesnapCreateWalletToken
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DeRoutableConnectorChoice { "type": "object", "description": "Routable Connector chosen for a payment", "required": [ "gateway_name", "gateway_id" ], "properties": { "gateway_name": { "$ref": "#/components/schemas/RoutableConnectors" }, "gateway...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
100
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DeRoutableConnectorChoice" ]
null
null
null
null
is_latency_header_enabled: Option<bool>, ) -> RouterResponse<Self> { let captures = payment_data .get_multiple_capture_data() .and_then(|multiple_capture_data| { multiple_capture_data .expand_captures .and_then(|should_e...
crates/router/src/core/payments/transformers.rs#chunk2
router
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorizeSessionToken for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
12
rust
null
Nuvei
api::PaymentAuthorizeSessionToken for
impl api::PaymentAuthorizeSessionToken for for Nuvei
null
null
null
null
null
null
null
null
pub struct Payone { #[cfg(feature = "payouts")] amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
struct_definition
36
rust
Payone
null
null
null
null
null
null
null
null
null
null
null
pub struct RelayWebhooks;
crates/router/src/routes/app.rs
router
struct_definition
6
rust
RelayWebhooks
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Nordea {}
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
10
rust
null
Nordea
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Nordea
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardResponse { "type": "object", "properties": { "last4": { "type": "string", "nullable": true }, "card_type": { "type": "string", "nullable": true }, "card_network": { "allOf": [ { "$ref": "#/components/schem...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
291
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardResponse" ]
null
null
null
null
impl GetPaymentMethodType for CardRedirectData { fn get_payment_method_type(&self) -> api_enums::PaymentMethodType { match self { Self::Knet {} => api_enums::PaymentMethodType::Knet, Self::Benefit {} => api_enums::PaymentMethodType::Benefit, Self::MomoAtm {} => api_enums:...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
impl_block
113
rust
null
CardRedirectData
GetPaymentMethodType for
impl GetPaymentMethodType for for CardRedirectData
null
null
null
null
null
null
null
null
impl ConnectorCommon for Opayo { fn id(&self) -> &'static str { "opayo" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.opayo.base_url.as_ref() } fn get_auth_header...
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
364
rust
null
Opayo
ConnectorCommon for
impl ConnectorCommon for for Opayo
null
null
null
null
null
null
null
null
pub struct PaypalIncrementalAuthRequest { amount: OrderAmount, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
PaypalIncrementalAuthRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PmFetched;
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
struct_definition
7
rust
PmFetched
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
10
rust
null
Rapyd
api::PaymentVoid for
impl api::PaymentVoid for for Rapyd
null
null
null
null
null
null
null
null
pub struct GetSearchRequest { pub offset: i64, pub count: i64, pub query: String, #[serde(default)] pub filters: Option<SearchFilters>, #[serde(default)] pub time_range: Option<TimeRange>, }
crates/api_models/src/analytics/search.rs
api_models
struct_definition
58
rust
GetSearchRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn refund_payment( state: SessionState, req: types::DummyConnectorRefundRequest, ) -> types::DummyConnectorResponse<types::DummyConnectorRefundResponse> { utils::tokio_mock_sleep( state.conf.dummy_connector.refund_duration, state.conf.dummy_connector.refund_tolerance, ) .aw...
crates/router/src/routes/dummy_connector/core.rs
router
function_signature
343
rust
null
null
null
null
refund_payment
null
null
null
null
null
null
null
pub async fn create(conf: &KafkaSettings) -> MQResult<Self> { Ok(Self { producer: Arc::new(RdKafkaProducer( ThreadedProducer::from_config( rdkafka::ClientConfig::new().set("bootstrap.servers", conf.brokers.join(",")), ) .change_cont...
crates/router/src/services/kafka.rs
router
function_signature
286
rust
null
null
null
null
create
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs Public structs: 24 use std::collections::HashMap; use cards::CardNumber; use common_enums::{enums, Currency}; use common_utils::{pii, request::Method, types::FloatMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::PaymentMet...
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
full_file
6,022
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalPaymentConfirm { pay_pal: Paypal, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
PaypalPaymentConfirm
null
null
null
null
null
null
null
null
null
null
null
pub struct SilverflowCaptureResponse { #[serde(rename = "type")] pub action_type: String, pub key: String, pub charge_key: String, pub status: SilverflowCaptureStatus, #[serde(skip_serializing_if = "Option::is_none")] pub reference: Option<String>, pub amount: Amount, pub created: St...
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
93
rust
SilverflowCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Test a payment | Hyperswitch # Type: Web Doc Test on Web Client Once you have successfully run the control centre , you should be able to test the payments. Account setup is a pre-requisite before you can test the payments. There are three conditions in which you might want to make a test payment: L...
https://docs.hyperswitch.io/hyperswitch-open-source/account-setup/test-a-payment
null
web_doc_file
797
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/hyperswitch-open-source/account-setup/test-a-payment
Test a payment | Hyperswitch
null
pub struct WiseBankDetails { legal_type: LegalType, account_type: Option<AccountType>, address: Option<WiseAddressDetails>, post_code: Option<String>, nationality: Option<String>, account_holder_name: Option<Secret<String>>, email: Option<Email>, account_number: Option<Secret<String>>, ...
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
175
rust
WiseBankDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn setup_intents_update( state: web::Data<routes::AppState>, qs_config: web::Data<serde_qs::Config>, req: HttpRequest, form_payload: web::Bytes, path: web::Path<common_utils::id_type::PaymentId>, ) -> HttpResponse { let setup_id = path.into_inner(); let stripe_payload: types::Strip...
crates/router/src/compatibility/stripe/setup_intents.rs
router
function_signature
531
rust
null
null
null
null
setup_intents_update
null
null
null
null
null
null
null
impl EuclidDirFilter for ConnectorSelection { const ALLOWED: &'static [DirKeyKind] = &[ DirKeyKind::PaymentMethod, DirKeyKind::CardBin, DirKeyKind::CardType, DirKeyKind::CardNetwork, DirKeyKind::PayLaterType, DirKeyKind::WalletType, DirKeyKind::UpiType, ...
crates/api_models/src/routing.rs
api_models
impl_block
266
rust
null
ConnectorSelection
EuclidDirFilter for
impl EuclidDirFilter for for ConnectorSelection
null
null
null
null
null
null
null
null
impl api::PaymentSync for Jpmorgan {}
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
10
rust
null
Jpmorgan
api::PaymentSync for
impl api::PaymentSync for for Jpmorgan
null
null
null
null
null
null
null
null
pub struct UasPreAuthenticationRequestData { pub service_details: Option<CtpServiceDetails>, pub transaction_details: Option<TransactionDetails>, pub payment_details: Option<PaymentDetails>, pub authentication_info: Option<AuthenticationInfo>, pub merchant_details: Option<MerchantDetails>, pub b...
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
88
rust
UasPreAuthenticationRequestData
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::Relay; let payload = payload.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth: auth::AuthenticationData, req, _| { let merchant_context = crate::types::domain::MerchantContext::NormalMercha...
crates/router/src/routes/relay.rs
router
impl_block
197
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct CybersourceTransactionResponse { id: String, application_information: ApplicationInformation, processor_information: Option<ClientProcessorInformation>, client_reference_information: Option<ClientReferenceInformation>, error_information: Option<CybersourceErrorInformation>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
CybersourceTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/user/theme.rs Public functions: 13 use actix_multipart::form::MultipartForm; use actix_web::{web, HttpRequest, HttpResponse}; use api_models::user::theme as theme_api; use common_utils::types::user::ThemeLineage; use masking::Secret; use router_env::Flow; use crate::{ core::{api_lo...
crates/router/src/routes/user/theme.rs
router
full_file
2,076
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Generate the id for Revenue Recovery Psync PT workflow pub fn get_psync_revenue_recovery_id( &self, task: &str, runner: enums::ProcessTrackerRunner, ) -> String { format!("{runner}_{task}_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/global_id/payment.rs
common_utils
function_signature
62
rust
null
null
null
null
get_psync_revenue_recovery_id
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/merchant_connector_account.rs Public functions: 15 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, Table}; use super::generics; #[cfg(feature = "v1")] use crate::schema::merchant_connector_account::dsl; #[cfg(feature = "v2")] use crate::schema_v2::m...
crates/diesel_models/src/query/merchant_connector_account.rs
diesel_models
full_file
1,956
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_most_specific_theme_using_lineage( state: &SessionState, lineage: ThemeLineage, ) -> UserResult<Option<Theme>> { match state .store .find_most_specific_theme_in_lineage(lineage) .await { Ok(theme) => Ok(Some(theme)), Err(e) => { if e.c...
crates/router/src/utils/user/theme.rs
router
function_signature
112
rust
null
null
null
null
get_most_specific_theme_using_lineage
null
null
null
null
null
null
null
pub struct UasPostAuthenticationRequestData { pub threeds_server_transaction_id: Option<String>, }
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
22
rust
UasPostAuthenticationRequestData
null
null
null
null
null
null
null
null
null
null
null
impl OrganizationBridge for Organization { fn get_organization_id(&self) -> id_type::OrganizationId { self.id.clone() } fn get_organization_name(&self) -> Option<String> { self.organization_name.clone() } fn set_organization_name(&mut self, organization_name: String) { self.o...
crates/diesel_models/src/organization.rs
diesel_models
impl_block
77
rust
null
Organization
OrganizationBridge for
impl OrganizationBridge for for Organization
null
null
null
null
null
null
null
null
impl api::Payment for Santander {}
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
8
rust
null
Santander
api::Payment for
impl api::Payment for for Santander
null
null
null
null
null
null
null
null
pub fn get_variant_values(key: &str) -> Result<JsValue, JsValue> { let key = dir::DirKeyKind::from_str(key).map_err(|_| "Invalid key received".to_string())?; let variants: &[&str] = match key { dir::DirKeyKind::PaymentMethod => dir_enums::PaymentMethod::VARIANTS, dir::DirKeyKind::CardType => di...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
868
rust
null
null
null
null
get_variant_values
null
null
null
null
null
null
null
pub struct BankOfAmericaRefundRequest { order_information: OrderInformation, client_reference_information: ClientReferenceInformation, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
BankOfAmericaRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::RoutingCreateConfig; Box::pin(oss_api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: auth::AuthenticationData, payload, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( ...
crates/router/src/routes/routing.rs
router
impl_block
233
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
/// Implement the `validate` function for the struct by calling `validate` function on the fields pub fn validate_config(input: syn::DeriveInput) -> Result<proc_macro2::TokenStream, syn::Error> { let fields = super::helpers::get_struct_fields(input.data) .map_err(|error| syn::Error::new(proc_macro2::Span::c...
crates/router_derive/src/macros/misc.rs
router_derive
function_signature
440
rust
null
null
null
null
validate_config
null
null
null
null
null
null
null
pub fn bank_transfer_next_steps_check( payment_attempt: storage::PaymentAttempt, ) -> RouterResult<Option<api_models::payments::BankTransferNextStepsData>> { let bank_transfer_next_step = if let Some(diesel_models::enums::PaymentMethod::BankTransfer) = payment_attempt.payment_method { if pay...
crates/router/src/core/payments/transformers.rs
router
function_signature
208
rust
null
null
null
null
bank_transfer_next_steps_check
null
null
null
null
null
null
null
pub trait ConnectorEventLogAnalytics: LoadRow<ConnectorEventsResult> {}
crates/analytics/src/connector_events/events.rs
analytics
trait_definition
15
rust
null
null
ConnectorEventLogAnalytics
null
null
null
null
null
null
null
null
null
pub fn get_default_config_key( merchant_id: &str, transaction_type: &storage::enums::TransactionType, ) -> String { match transaction_type { storage::enums::TransactionType::Payment => format!("routing_default_{merchant_id}"), #[cfg(feature = "payouts")] storage::enums::TransactionTy...
crates/router/src/core/routing/helpers.rs
router
function_signature
113
rust
null
null
null
null
get_default_config_key
null
null
null
null
null
null
null
pub struct PaymentLinkTransactionDetails { /// Key for the transaction details #[schema(value_type = String, max_length = 255, example = "Policy-Number")] pub key: String, /// Value for the transaction details #[schema(value_type = String, max_length = 255, example = "297472368473924")] pub valu...
crates/api_models/src/admin.rs
api_models
struct_definition
114
rust
PaymentLinkTransactionDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_by_id( conn: &PgPooledConn, id: &common_utils::id_type::MerchantConnectorAccountId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>(conn, dsl::id.eq(id.to_owned())) .await }
crates/diesel_models/src/query/merchant_connector_account.rs
diesel_models
function_signature
71
rust
null
null
null
null
delete_by_id
null
null
null
null
null
null
null
impl Airwallex { pub const fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, amount_converter_to_string_minor: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
50
rust
null
Airwallex
null
impl Airwallex
null
null
null
null
null
null
null
null
impl api::Refund for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpayvantiv
api::Refund for
impl api::Refund for for Worldpayvantiv
null
null
null
null
null
null
null
null
let connected_merchant_account = state .store() .find_merchant_account_by_merchant_id(key_manager_state, &connected_merchant_id, &key_store) .await .to_not_found_response(errors::ApiErrorResponse::InvalidPlatformOperation) .attach_printable("Failed to fetch merchant account ...
crates/router/src/services/authentication.rs#chunk4
router
chunk
1,476
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ConsumerAuthenticationInformation { eci_raw: Option<String>, eci: Option<String>, acs_transaction_id: Option<String>, cavv: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
ConsumerAuthenticationInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct VerifyEmailRequest { pub token: Secret<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
14
rust
VerifyEmailRequest
null
null
null
null
null
null
null
null
null
null
null
pub(crate) fn get_drainer_stream_name(&self, stream_index: u8) -> String { self.drainer_stream(format!("shard_{stream_index}").as_str()) }
crates/drainer/src/stream.rs
drainer
function_signature
40
rust
null
null
null
null
get_drainer_stream_name
null
null
null
null
null
null
null
/// get_payment_config_routing_id pub fn get_payment_config_routing_id(&self) -> String { format!("payment_config_id_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
36
rust
null
null
null
null
get_payment_config_routing_id
null
null
null
null
null
null
null
impl api::PaymentSession for Xendit {}
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
10
rust
null
Xendit
api::PaymentSession for
impl api::PaymentSession for for Xendit
null
null
null
null
null
null
null
null
impl super::KafkaMessage for KafkaFraudCheckEvent<'_> { fn key(&self) -> String { format!( "{}_{}_{}_{}", self.merchant_id.get_string_repr(), self.payment_id.get_string_repr(), self.attempt_id, self.frm_id ) } fn event_type(&self) ...
crates/router/src/services/kafka/fraud_check_event.rs
router
impl_block
95
rust
null
KafkaFraudCheckEvent
super::KafkaMessage for
impl super::KafkaMessage for for KafkaFraudCheckEvent
null
null
null
null
null
null
null
null
pub async fn get_sdk_event_filters( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<GetSdkEventFiltersRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetSdkEventFilters; Box::pin(api::server_wrap( flow, state,...
crates/router/src/analytics.rs
router
function_signature
180
rust
null
null
null
null
get_sdk_event_filters
null
null
null
null
null
null
null
authorize_id: None, capture_id: None, incremental_authorization_id: None, psync_flow: item.response.intent, next_action, order_id: None, }); let purchase_units = item.response.purchase_units.first(); Ok(Self { st...
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs#chunk2
hyperswitch_connectors
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Blackhawknetwork { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
35
rust
null
Blackhawknetwork
null
impl Blackhawknetwork
null
null
null
null
null
null
null
null
pub struct PhonepeErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, pub network_advice_code: Option<String>, pub network_decline_code: Option<String>, pub network_error_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
PhonepeErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct FraudCheckCheckoutData { pub amount: i64, pub order_details: Option<Vec<OrderDetailsWithAmount>>, pub currency: Option<common_enums::Currency>, pub browser_info: Option<router_request_types::BrowserInformation>, pub payment_method_data: Option<api_models::payments::AdditionalPaymentData>,...
crates/hyperswitch_domain_models/src/router_request_types/fraud_check.rs
hyperswitch_domain_models
struct_definition
86
rust
FraudCheckCheckoutData
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Affirm { 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/affirm.rs
hyperswitch_connectors
impl_block
210
rust
null
Affirm
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Affirm
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Tsys {}
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
9
rust
null
Tsys
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Tsys
null
null
null
null
null
null
null
null
impl Capturable for PaymentsCaptureData { fn get_captured_amount<F>( &self, _amount_captured: Option<i64>, _payment_data: &PaymentData<F>, ) -> Option<i64> where F: Clone, { Some(self.amount_to_capture) } fn get_amount_capturable<F>( &self, ...
crates/router/src/types.rs
router
impl_block
355
rust
null
PaymentsCaptureData
Capturable for
impl Capturable for for PaymentsCaptureData
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmazonPaySessionTokenResponse { "type": "object", "required": [ "merchant_id", "ledger_currency", "store_id", "payment_intent", "total_shipping_amount", "total_tax_amount", "total_base_amount", "delivery_options" ], "properties": { "merc...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
312
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmazonPaySessionTokenResponse" ]
null
null
null
null
pub struct PayoutVendorDetails { pub account_type: String, pub business_type: String, pub business_profile_mcc: Option<i32>, pub business_profile_url: Option<String>, pub business_profile_name: Option<Secret<String>>, pub company_address_line1: Option<Secret<String>>, pub company_address_lin...
crates/api_models/src/payouts.rs
api_models
struct_definition
163
rust
PayoutVendorDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutableConnectorChoice { #[serde(skip)] pub choice_kind: RoutableChoiceKind, pub connector: RoutableConnectors, #[schema(value_type = Option<String>)] pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, }
crates/api_models/src/routing.rs
api_models
struct_definition
60
rust
RoutableConnectorChoice
null
null
null
null
null
null
null
null
null
null
null
pub struct EphemeralKeyCreateRequest { /// Customer ID for which an ephemeral key must be created #[schema( min_length = 1, max_length = 64, value_type = String, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44" )] pub customer_id: id_type::CustomerId, }
crates/api_models/src/ephemeral_key.rs
api_models
struct_definition
86
rust
EphemeralKeyCreateRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/webhooks/recovery_incoming.rs Public functions: 10 Public structs: 8 use std::{collections::HashMap, marker::PhantomData, str::FromStr}; use api_models::{enums as api_enums, payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; us...
crates/router/src/core/webhooks/recovery_incoming.rs#chunk0
router
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PowertranzAuthType { pub(super) power_tranz_id: Secret<String>, pub(super) power_tranz_password: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
PowertranzAuthType
null
null
null
null
null
null
null
null
null
null
null
impl ApiEventMetric for AuthenticationSyncRequest { fn get_api_event_type(&self) -> Option<ApiEventsType> { Some(ApiEventsType::Authentication { authentication_id: self.authentication_id.clone(), }) } }
crates/api_models/src/authentication.rs
api_models
impl_block
48
rust
null
AuthenticationSyncRequest
ApiEventMetric for
impl ApiEventMetric for for AuthenticationSyncRequest
null
null
null
null
null
null
null
null
File: crates/router/src/core/unified_connector_service.rs Public functions: 15 use std::{str::FromStr, time::Instant}; use api_models::admin; #[cfg(feature = "v2")] use base64::Engine; use common_enums::{connector_enums::Connector, AttemptStatus, GatewaySystem, PaymentMethodType}; #[cfg(feature = "v2")] use common_u...
crates/router/src/core/unified_connector_service.rs
router
full_file
7,352
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn new( conf: &redis_interface::RedisSettings, ) -> error_stack::Result<Self, redis_interface::errors::RedisError> { Ok(Self { redis_conn: Arc::new(redis_interface::RedisConnectionPool::new(conf).await?), }) }
crates/storage_impl/src/redis.rs
storage_impl
function_signature
61
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn update_with_id( self, conn: &PgPooledConn, tokenization_record: tokenization_diesel::TokenizationUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, ...
crates/diesel_models/src/query/tokenization.rs
diesel_models
function_signature
146
rust
null
null
null
null
update_with_id
null
null
null
null
null
null
null
pub fn generate_cargo_instructions() { use std::io::Write; use vergen::EmitBuilder; EmitBuilder::builder() .cargo_debug() .cargo_opt_level() .cargo_target_triple() .git_commit_timestamp() .git_describe(true, true, None) .git_sha(true) .rustc_semver()...
crates/router_env/src/vergen.rs
router_env
function_signature
166
rust
null
null
null
null
generate_cargo_instructions
null
null
null
null
null
null
null
pub struct RoleInfoResponseWithParentsGroup { pub role_id: String, pub role_name: String, pub entity_type: EntityType, pub parent_groups: Vec<ParentGroupInfo>, pub role_scope: RoleScope, }
crates/api_models/src/user_role/role.rs
api_models
struct_definition
50
rust
RoleInfoResponseWithParentsGroup
null
null
null
null
null
null
null
null
null
null
null
pub struct Address { name: Secret<String>, line_1: Secret<String>, line_2: Option<Secret<String>>, line_3: Option<Secret<String>>, city: Option<String>, state: Option<Secret<String>>, country: Option<String>, zip: Option<Secret<String>>, phone_number: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
76
rust
Address
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/bitpay.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use common_enums::enums; use common_utils::{ errors::{CustomResult, ReportSwitchExt}, ext_traits::ByteSliceExt, ...
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
full_file
3,546
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn should_call_payout_connector_create_customer<'a>( state: &'a SessionState, connector: &'a api::ConnectorData, customer: &'a Option<domain::Customer>, merchant_connector_id: &'a domain::MerchantConnectorAccountTypeDetails, ) -> (bool, Option<&'a str>) { // Check if create customer is required ...
crates/router/src/core/payouts/helpers.rs
router
function_signature
219
rust
null
null
null
null
should_call_payout_connector_create_customer
null
null
null
null
null
null
null
pub fn parse_and_get_metadata<T>( &self, type_name: &'static str, ) -> CustomResult<Option<T>, common_utils::errors::ParsingError> where T: for<'de> masking::Deserialize<'de>, { self.metadata .clone() .map(|metadata| metadata.parse_value(type_name)) ...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
80
rust
null
null
null
null
parse_and_get_metadata
null
null
null
null
null
null
null
pub struct HelcimPaymentsResponse { status: HelcimPaymentStatus, transaction_id: u64, invoice_number: Option<String>, #[serde(rename = "type")] transaction_type: HelcimTransactionType, }
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
HelcimPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_derive/src/macros/to_encryptable.rs Public functions: 1 Public structs: 1 use std::iter::Iterator; use quote::{format_ident, quote}; use syn::{parse::Parse, punctuated::Punctuated, token::Comma, Field, Ident, Type as SynType}; use crate::macros::{helpers::get_struct_fields, misc::get_field_type...
crates/router_derive/src/macros/to_encryptable.rs
router_derive
full_file
2,560
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn submit_evidence( state: SessionState, merchant_context: domain::MerchantContext, profile_id: Option<common_utils::id_type::ProfileId>, req: dispute_models::SubmitEvidenceRequest, ) -> RouterResponse<dispute_models::DisputeResponse> { let db = &state.store; let dispute = state ...
crates/router/src/core/disputes.rs
router
function_signature
1,225
rust
null
null
null
null
submit_evidence
null
null
null
null
null
null
null
impl ValidateStatusForOperation for PaymentGet { /// Validate if the current operation can be performed on the current status of the payment intent fn validate_status_for_operation( &self, intent_status: common_enums::IntentStatus, ) -> Result<(), errors::ApiErrorResponse> { match in...
crates/router/src/core/payments/operations/payment_get.rs
router
impl_block
462
rust
null
PaymentGet
ValidateStatusForOperation for
impl ValidateStatusForOperation for for PaymentGet
null
null
null
null
null
null
null
null
pub struct ForteAuthType { pub(super) api_access_id: Secret<String>, pub(super) organization_id: Secret<String>, pub(super) location_id: Secret<String>, pub(super) api_secret_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
ForteAuthType
null
null
null
null
null
null
null
null
null
null
null
impl Webhooks { pub fn server(config: AppState) -> Scope { use api_models::webhooks as webhook_type; #[allow(unused_mut)] let mut route = web::scope("/webhooks") .app_data(web::Data::new(config)) .service( web::resource("/network_token_requestor/ref")...
crates/router/src/routes/app.rs
router
impl_block
336
rust
null
Webhooks
null
impl Webhooks
null
null
null
null
null
null
null
null
pub struct CeleroPaymentsRequest { idempotency_key: String, #[serde(rename = "type")] transaction_type: TransactionType, amount: MinorUnit, // CeleroCommerce expects integer cents currency: Currency, payment_method: CeleroPaymentMethod, #[serde(skip_serializing_if = "Option::is_none")] b...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
258
rust
CeleroPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
/// Returns the decision pub fn get_decision(&self) -> ThreeDSDecision { self.decision }
crates/common_types/src/three_ds_decision_rule_engine.rs
common_types
function_signature
25
rust
null
null
null
null
get_decision
null
null
null
null
null
null
null
pub fn new(proxy_config: &Proxy) -> CustomResult<Self, ApiClientError> { let client = client::get_client_builder(proxy_config) .switch()? .build() .change_context(ApiClientError::InvalidProxyConfiguration)?; Ok(Self { proxy_config: proxy_config.clone(), ...
crates/router/src/services/api/client.rs
router
function_signature
77
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct CybersourceRefundResponse { id: String, status: CybersourceRefundStatus, error_information: Option<CybersourceErrorInformation>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
CybersourceRefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl<const T: u8> PaymentToken for DummyConnector<T> {}
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
impl_block
15
rust
null
DummyConnector
PaymentToken for
impl PaymentToken for for DummyConnector
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_confirm.rs Public structs: 1 use std::marker::PhantomData; #[cfg(feature = "v1")] use api_models::payment_methods::PaymentMethodsData; use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, payments::{ConnectorMandateReferenceId, Ex...
crates/router/src/core/payments/operations/payment_confirm.rs#chunk0
router
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/db/generic_link.rs use error_stack::report; use router_env::{instrument, tracing}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, services::Store, types::storage, }; #[async_trait::async_trait] pub trait GenericLinkInterface { async fn find_ge...
crates/router/src/db/generic_link.rs
router
full_file
1,573
null
null
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Stax { async fn verify_webhook_source( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, _merchant_id: &common_utils::id_type::MerchantId, _connector_webhook_details: Option<common_utils::pii::SecretSerdeValue>, _connector_accou...
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
745
rust
null
Stax
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Stax
null
null
null
null
null
null
null
null
pub struct ConnectorTomlConfig { pub connector_auth: Option<ConnectorAuthType>, pub connector_webhook_details: Option<api_models::admin::MerchantConnectorWebhookDetails>, pub metadata: Option<Box<ConfigMetadata>>, pub connector_wallets_details: Option<Box<ConnectorWalletDetailsConfig>>, pub addition...
crates/connector_configs/src/connector.rs
connector_configs
struct_definition
236
rust
ConnectorTomlConfig
null
null
null
null
null
null
null
null
null
null
null
pub struct PgRedirectResponseForAuthentication { pub authentication_id: common_utils::id_type::AuthenticationId, pub status: common_enums::TransactionStatus, pub gateway_id: String, pub customer_id: Option<common_utils::id_type::CustomerId>, pub amount: Option<common_utils::types::MinorUnit>, }
crates/hyperswitch_domain_models/src/authentication.rs
hyperswitch_domain_models
struct_definition
70
rust
PgRedirectResponseForAuthentication
null
null
null
null
null
null
null
null
null
null
null
impl NuveiAuthorizePreprocessingCommon for PaymentsAuthorizeData { fn get_browser_info(&self) -> Option<BrowserInformation> { self.browser_info.clone() } fn get_ntid(&self) -> Option<String> { self.get_optional_network_transaction_id() } fn get_related_transaction_id(&self) -> Option...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
impl_block
546
rust
null
PaymentsAuthorizeData
NuveiAuthorizePreprocessingCommon for
impl NuveiAuthorizePreprocessingCommon for for PaymentsAuthorizeData
null
null
null
null
null
null
null
null
pub struct LastPaymentError { charge: Option<String>, code: Option<String>, decline_code: Option<String>, message: String, param: Option<String>, payment_method: StripePaymentMethod, #[serde(rename = "type")] error_type: String, }
crates/router/src/compatibility/stripe/setup_intents/types.rs
router
struct_definition
59
rust
LastPaymentError
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/locker-api-reference/cards/delete-data-from-locker.mdx # Type: Doc File --- openapi: rust_locker_open_api_spec post /data/delete ---
api-reference/locker-api-reference/cards/delete-data-from-locker.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null