text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
pub struct CustomerBankAccounts { #[serde(flatten)] accounts: CustomerBankAccount, links: CustomerAccountLink, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
CustomerBankAccounts
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Airwallex {}
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
11
rust
null
Airwallex
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Airwallex
null
null
null
null
null
null
null
null
pub struct ThreedsecureioAuthenticationSuccessResponse { #[serde(rename = "acsChallengeMandated")] pub acs_challenge_mandated: Option<String>, #[serde(rename = "acsOperatorID")] pub acs_operator_id: Option<String>, #[serde(rename = "acsReferenceNumber")] pub acs_reference_number: String, #[s...
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
284
rust
ThreedsecureioAuthenticationSuccessResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_card_by_locker_id( state: &routes::SessionState, id: &id_type::GlobalCustomerId, merchant_id: &id_type::MerchantId, ) -> errors::RouterResult<payment_methods::DeleteCardResp> { todo!() }
crates/router/src/core/payment_methods/cards.rs
router
function_signature
60
rust
null
null
null
null
delete_card_by_locker_id
null
null
null
null
null
null
null
pub struct SiftAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
SiftAuthType
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
10
rust
null
Fiservemea
ConnectorValidation for
impl ConnectorValidation for for Fiservemea
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Powertranz { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplement...
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
impl_block
211
rust
null
Powertranz
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Powertranz
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs Public structs: 26 use base64::Engine; use common_enums::enums; use common_utils::{ ext_traits::ValueExt, pii::{Email, IpAddress}, types::FloatMajorUnit, }; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_m...
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
full_file
5,914
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Tokenio {}
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
9
rust
null
Tokenio
api::Refund for
impl api::Refund for for Tokenio
null
null
null
null
null
null
null
null
Web Documentation: SDK Payment flows | Hyperswitch # Type: Web Doc Payments 101 If you're complete beginner to Digital Payments, take a look at this Payments 101 blog to get familiar with terminologies. Payments flow There are multiple stages in a Payment flow depending on the payment methods that are involved. Consid...
https://docs.hyperswitch.io/learn-more/sdk-payment-flows
null
web_doc_file
783
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/learn-more/sdk-payment-flows
SDK Payment flows | Hyperswitch
null
OpenAPI Block Path: components.schemas.CardTestingGuardStatus { "type": "string", "enum": [ "enabled", "disabled" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
37
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardTestingGuardStatus" ]
null
null
null
null
Documentation: api-reference/locker-api-reference/cards/add-data-in-locker.mdx # Type: Doc File --- openapi: rust_locker_open_api_spec post /data/add ---
api-reference/locker-api-reference/cards/add-data-in-locker.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl TaxCalculationOverride { pub fn as_bool(self) -> bool { match self { Self::Skip => false, Self::Calculate => true, } } }
crates/common_enums/src/enums.rs
common_enums
impl_block
39
rust
null
TaxCalculationOverride
null
impl TaxCalculationOverride
null
null
null
null
null
null
null
null
pub struct GocardlessPayment { amount: MinorUnit, currency: enums::Currency, description: Option<String>, metadata: PaymentMetaData, links: PaymentLink, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
GocardlessPayment
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_sso_auth_url( state: web::Data<AppState>, req: HttpRequest, query: web::Query<user_api::GetSsoAuthUrlRequest>, ) -> HttpResponse { let flow = Flow::GetSsoAuthUrl; let payload = query.into_inner(); Box::pin(api::server_wrap( flow, state.clone(), &req, ...
crates/router/src/routes/user.rs
router
function_signature
134
rust
null
null
null
null
get_sso_auth_url
null
null
null
null
null
null
null
pub fn get_connector_by_name(name: &str) -> CustomResult<Self, errors::ApiErrorResponse> { let connector_name = enums::FrmConnectors::from_str(name) .change_context(errors::ApiErrorResponse::IncorrectConnectorNameGiven) .attach_printable_lazy(|| { format!("unable to parse...
crates/router/src/types/api/fraud_check.rs
router
function_signature
103
rust
null
null
null
null
get_connector_by_name
null
null
null
null
null
null
null
pub trait RedisErrorExt { #[track_caller] fn to_redis_failed_response(self, key: &str) -> error_stack::Report<StorageError>; }
crates/storage_impl/src/errors.rs
storage_impl
trait_definition
35
rust
null
null
RedisErrorExt
null
null
null
null
null
null
null
null
null
pub struct UnifiedAuthenticationServiceAuthenticateRequest { pub authenticate_by: String, pub source_authentication_id: common_utils::id_type::AuthenticationId, pub transaction_details: TransactionDetails, pub device_details: DeviceDetails, pub customer_details: Option<CustomerDetails>, pub auth...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
68
rust
UnifiedAuthenticationServiceAuthenticateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorDetails { pub code: Option<String>, #[serde(rename = "type")] pub error_type: Option<String>, pub message: Option<String>, pub param: Option<String>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
43
rust
ErrorDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetPaymentProfileRequest { merchant_authentication: AuthorizedotnetAuthType, customer_profile_id: Secret<String>, payment_profile: PaymentProfile, validation_mode: ValidationMode, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
AuthorizedotnetPaymentProfileRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
9
rust
null
Dlocal
api::PaymentSync for
impl api::PaymentSync for for Dlocal
null
null
null
null
null
null
null
null
pub struct DummyConnectorRefundRequest { pub amount: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
DummyConnectorRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CeleroSearchRequest { transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
CeleroSearchRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<MerchantConnectorAccount> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/merchant_connector_account.rs
diesel_models
function_signature
36
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub async fn get_create_file_request( mut payload: Multipart, ) -> CustomResult<CreateFileRequest, errors::ApiErrorResponse> { let mut option_purpose: Option<files::FilePurpose> = None; let mut dispute_id: Option<String> = None; let mut file_name: Option<String> = None; let mut file_content: Option...
crates/router/src/routes/files/transformers.rs
router
function_signature
593
rust
null
null
null
null
get_create_file_request
null
null
null
null
null
null
null
pub struct PaypalAdditionalData { /// Email linked with paypal account #[schema(value_type = Option<String>, example = "john.doe@example.com")] pub email: Option<MaskedEmail>, /// mobile number linked to paypal account #[schema(value_type = Option<String>, example = "******* 3349")] pub telepho...
crates/common_utils/src/payout_method_utils.rs
common_utils
struct_definition
125
rust
PaypalAdditionalData
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetAuthEventFilters; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req, _| async move { let org_id = auth.merchant_account.g...
crates/router/src/analytics.rs
router
impl_block
198
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub fn if_statement(input: &str) -> ParseResult<&str, ast::IfStatement> { let nested_block = sequence::delimited( skip_ws(complete::tag("{")), multi::many0(if_statement), skip_ws(complete::tag("}")), ); error::context( "if_statement", combinator::map( seq...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
140
rust
null
null
null
null
if_statement
null
null
null
null
null
null
null
pub struct PhonepeCard { number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvc: Secret<String>, complete: bool, }
crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
PhonepeCard
null
null
null
null
null
null
null
null
null
null
null
pub fn network_transaction_id_migrated(&mut self, network_transaction_migrated: Option<bool>) { self.network_transaction_migrated = network_transaction_migrated; }
crates/payment_methods/src/core/migration.rs
payment_methods
function_signature
34
rust
null
null
null
null
network_transaction_id_migrated
null
null
null
null
null
null
null
impl SubmitEvidence for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpayvantiv
SubmitEvidence for
impl SubmitEvidence for for Worldpayvantiv
null
null
null
null
null
null
null
null
impl api::PaymentSync for Bluesnap {}
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
9
rust
null
Bluesnap
api::PaymentSync for
impl api::PaymentSync for for Bluesnap
null
null
null
null
null
null
null
null
pub struct FiuuQRData { txn_channel: TxnChannel, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
FiuuQRData
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_generic_link_by_link_id( conn: &PgPooledConn, link_id: &str, ) -> StorageResult<GenericLinkState> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::link_id.eq(link_id.to_owned()), ) .await .and_then(|...
crates/diesel_models/src/query/generic_link.rs
diesel_models
function_signature
126
rust
null
null
null
null
find_generic_link_by_link_id
null
null
null
null
null
null
null
pub struct ChargebeeRecordbackResponse { pub invoice: ChargebeeRecordbackInvoice, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ChargebeeRecordbackResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AcceptInviteFromEmailRequest { pub token: Secret<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
16
rust
AcceptInviteFromEmailRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn migrate_cards_info( state: routes::SessionState, card_info_records: Vec<cards_info_api_types::CardInfoUpdateRequest>, ) -> RouterResponse<Vec<cards_info_api_types::CardInfoMigrationResponse>> { let mut result = Vec::new(); for record in card_info_records { let res = card_info_flow(r...
crates/router/src/core/cards_info.rs
router
function_signature
155
rust
null
null
null
null
migrate_cards_info
null
null
null
null
null
null
null
pub struct PaymentMethodType { card: Option<Card>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
PaymentMethodType
null
null
null
null
null
null
null
null
null
null
null
pub async fn organization_retrieve( state: web::Data<AppState>, req: HttpRequest, org_id: web::Path<common_utils::id_type::OrganizationId>, ) -> HttpResponse { let flow = Flow::OrganizationRetrieve; let organization_id = org_id.into_inner(); let payload = admin::OrganizationId { organiza...
crates/router/src/routes/admin.rs
router
function_signature
183
rust
null
null
null
null
organization_retrieve
null
null
null
null
null
null
null
pub async fn call_database<D, R, M>( &self, state: &KeyManagerState, key_store: &MerchantKeyStore, execute_query: R, ) -> error_stack::Result<D, StorageError> where D: Debug + Sync + Conversion, R: futures::Future<Output = error_stack::Result<M, diesel_models::err...
crates/storage_impl/src/lib.rs
storage_impl
function_signature
183
rust
null
null
null
null
call_database
null
null
null
null
null
null
null
impl api::RefundSync for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
10
rust
null
Klarna
api::RefundSync for
impl api::RefundSync for for Klarna
null
null
null
null
null
null
null
null
impl SmtpServer { /// A helper function to create SMTP server client pub fn create_client(&self) -> Result<SmtpTransport, SmtpError> { let host = self.smtp_config.host.clone(); let port = self.smtp_config.port; let timeout = Some(Duration::from_secs(self.smtp_config.timeout)); le...
crates/external_services/src/email/smtp.rs
external_services
impl_block
454
rust
null
SmtpServer
null
impl SmtpServer
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Nuvei { fn get_flow_type( &self, _query_params: &str, json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, errors::ConnectorError> { match action { PaymentAction::PSync | Paym...
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
283
rust
null
Nuvei
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Nuvei
null
null
null
null
null
null
null
null
pub struct ErrorDetails { pub field: Option<String>, pub message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
ErrorDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { use super::process_tracker::revenue_recovery; web::scope("/v2/process-trackers/revenue-recovery-workflow") .app_data(web::Data::new(state.clone())) .service( web::resource("/{revenue_recovery_id}") .rou...
crates/router/src/routes/app.rs
router
function_signature
88
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub async fn find_by_lookup_id(lookup_id: &str, conn: &PgPooledConn) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::lookup_id.eq(lookup_id.to_owned()), ) .await }
crates/diesel_models/src/query/reverse_lookup.rs
diesel_models
function_signature
70
rust
null
null
null
null
find_by_lookup_id
null
null
null
null
null
null
null
impl ConnectorCommon for Volt { fn id(&self) -> &'static str { "volt" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Con...
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
444
rust
null
Volt
ConnectorCommon for
impl ConnectorCommon for for Volt
null
null
null
null
null
null
null
null
pub struct DisputeListWorkflow;
crates/router/src/workflows/dispute_list.rs
router
struct_definition
7
rust
DisputeListWorkflow
null
null
null
null
null
null
null
null
null
null
null
pub struct NewUser { user_id: String, name: UserName, email: UserEmail, password: Option<NewUserPassword>, new_merchant: NewUserMerchant, }
crates/router/src/types/domain/user.rs
router
struct_definition
41
rust
NewUser
null
null
null
null
null
null
null
null
null
null
null
pub struct SessionTokenRoutingResult { pub final_result: api::SessionConnectorDatas, pub routing_result: FxHashMap<common_enums::PaymentMethodType, Vec<api::routing::SessionRoutingChoice>>, }
crates/router/src/core/payments.rs
router
struct_definition
47
rust
SessionTokenRoutingResult
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Authorizedotnet
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Authorizedotnet
null
null
null
null
null
null
null
null
File: crates/api_models/src/events/user.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; #[cfg(feature = "dummy_connector")] use crate::user::sample_data::SampleDataRequest; #[cfg(feature = "control_center_theme")] use crate::user::theme::{ CreateThemeRequest, CreateUserThemeRequest, GetThemeResponse...
crates/api_models/src/events/user.rs
api_models
full_file
676
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct EventListConstraints { /// Filter events created after the specified time. #[serde(default, with = "common_utils::custom_serde::iso8601::option")] pub created_after: Option<PrimitiveDateTime>, /// Filter events created before the specified time. #[serde(default, with = "common_utils::cus...
crates/api_models/src/webhook_events.rs
api_models
struct_definition
274
rust
EventListConstraints
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Airwallex {}
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
12
rust
null
Airwallex
api::MandateSetup for
impl api::MandateSetup for for Airwallex
null
null
null
null
null
null
null
null
impl UserFromStorage { pub fn get_user_id(&self) -> &str { self.0.user_id.as_str() } pub fn compare_password(&self, candidate: &Secret<String>) -> UserResult<()> { if let Some(password) = self.0.password.as_ref() { match password::is_correct_password(candidate, password) { ...
crates/router/src/types/domain/user.rs
router
impl_block
1,278
rust
null
UserFromStorage
null
impl UserFromStorage
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_get.rs Public structs: 1 use api_models::{enums::FrmSuggestion, payments::PaymentsRetrieveRequest}; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use hyperswitch_domain_models::payments::PaymentStatusData; use...
crates/router/src/core/payments/operations/payment_get.rs
router
full_file
2,977
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let _flow = Flow::PayoutsAccounts; http_response("accounts") }
crates/router/src/routes/payouts.rs
router
impl_block
23
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct SellerStatusDetailsResponse { pub merchant_id: common_utils::id_type::MerchantId, pub primary_email_confirmed: bool, pub payments_receivable: bool, pub products: Vec<SellerStatusProducts>, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
50
rust
SellerStatusDetailsResponse
null
null
null
null
null
null
null
null
null
null
null
impl Parse for Derives { fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> { let text = input.parse::<syn::LitStr>()?; let value = text.value(); value.as_str().parse().map_err(|_| { syn::Error::new_spanned( &text, format!( ...
crates/router_derive/src/macros/operation.rs
router_derive
impl_block
112
rust
null
Derives
Parse for
impl Parse for for Derives
null
null
null
null
null
null
null
null
pub fn get_transformed_response_payload(response: Self) -> DashboardRequestPayload { let mut wallet_details: Vec<Provider> = Vec::new(); let mut bank_redirect_details: Vec<Provider> = Vec::new(); let mut pay_later_details: Vec<Provider> = Vec::new(); let mut debit_details: Vec<CardProvid...
crates/connector_configs/src/response_modifier.rs
connector_configs
function_signature
2,902
rust
null
null
null
null
get_transformed_response_payload
null
null
null
null
null
null
null
pub(super) async fn get_or_create_customer_details( state: &SessionState, customer_details: &CustomerDetails, merchant_context: &domain::MerchantContext, ) -> RouterResult<Option<domain::Customer>> { let db: &dyn StorageInterface = &*state.store; // Create customer_id if not passed in request le...
crates/router/src/core/payouts/helpers.rs
router
function_signature
876
rust
null
null
null
null
get_or_create_customer_details
null
null
null
null
null
null
null
/// Returns the country code as a string. pub fn get_country_code(&self) -> String { self.0.clone() }
crates/common_types/src/payments.rs
common_types
function_signature
29
rust
null
null
null
null
get_country_code
null
null
null
null
null
null
null
impl api::Payment for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
7
rust
null
Zen
api::Payment for
impl api::Payment for for Zen
null
null
null
null
null
null
null
null
pub struct HyperwalletErrorResponse { 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/hyperwallet/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
HyperwalletErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Fiuu {}
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
impl_block
12
rust
null
Fiuu
api::MandateSetup for
impl api::MandateSetup for for Fiuu
null
null
null
null
null
null
null
null
impl Multisafepay { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
36
rust
null
Multisafepay
null
impl Multisafepay
null
null
null
null
null
null
null
null
pub struct BluesnapPaymentsRequest { amount: StringMajorUnit, #[serde(flatten)] payment_method: PaymentMethodDetails, currency: enums::Currency, card_transaction_type: BluesnapTxnType, transaction_fraud_info: Option<TransactionFraudInfo>, card_holder_info: Option<BluesnapCardHolderInfo>, ...
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
93
rust
BluesnapPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct GetSearchRequestWithIndex { pub index: SearchIndex, pub search_req: GetSearchRequest, }
crates/api_models/src/analytics/search.rs
api_models
struct_definition
25
rust
GetSearchRequestWithIndex
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
9
rust
null
Dlocal
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Dlocal
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/riskified/transformers.rs #[cfg(feature = "frm")] pub mod api; pub mod auth; #[cfg(feature = "frm")] pub use self::api::*; pub use self::auth::*;
crates/hyperswitch_connectors/src/connectors/riskified/transformers.rs
hyperswitch_connectors
full_file
54
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Bluesnap {}
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
9
rust
null
Bluesnap
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Bluesnap
null
null
null
null
null
null
null
null
pub struct AuthEventMetricsAccumulator { pub authentication_count: CountAccumulator, pub authentication_attempt_count: CountAccumulator, pub authentication_error_message: AuthenticationErrorMessageAccumulator, pub authentication_success_count: CountAccumulator, pub challenge_flow_count: CountAccumul...
crates/analytics/src/auth_events/accumulator.rs
analytics
struct_definition
148
rust
AuthEventMetricsAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodInput { pub payment_method: Option<enums::PaymentMethod>, pub payment_method_type: Option<enums::PaymentMethodType>, pub card_network: Option<enums::CardNetwork>, }
crates/euclid/src/backend/inputs.rs
euclid
struct_definition
45
rust
PaymentMethodInput
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationDetails { pub cryptogram: Secret<String>, pub token: NetworkToken, //network token }
crates/router/src/types/payment_methods.rs
router
struct_definition
25
rust
AuthenticationDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/customers.rs Public functions: 5 use common_utils::pii; use masking::ExposeOptionInterface; use router_env::{instrument, tracing}; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments, }, logger, routes::{metrics, SessionState}...
crates/router/src/core/payments/customers.rs
router
full_file
1,359
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/cybersource.rs Public functions: 3 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_enums::enums; use common_utils::{ consts, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, Reque...
crates/hyperswitch_connectors/src/connectors/cybersource.rs#chunk0
hyperswitch_connectors
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantMetadata { merchant_reference_id: Option<String>, merchant_store_name: Option<String>, note_to_buyer: Option<String>, custom_information: Option<String>, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
MerchantMetadata
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Coinbase { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*COINBASE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*COINBASE_SUPPORTED_PAYMENT_METHODS) } fn get_...
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
109
rust
null
Coinbase
ConnectorSpecifications for
impl ConnectorSpecifications for for Coinbase
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GsmResponse { "type": "object", "required": [ "connector", "flow", "sub_flow", "code", "message", "status", "decision", "step_up_possible", "clear_pan_possible", "feature", "feature_data" ], "properties": { "connector": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
572
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GsmResponse" ]
null
null
null
null
pub struct PaymentRequestCards { pub amount: StringMajorUnit, pub currency: String, pub pan: cards::CardNumber, pub cvv: Secret<String>, #[serde(rename = "exp")] pub expiry_date: Secret<String>, pub cardholder: Secret<String>, pub reference: String, #[serde(rename = "redirectUrl")] ...
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
436
rust
PaymentRequestCards
null
null
null
null
null
null
null
null
null
null
null
pub struct CardCancelResponse { pub card_type: Secret<String>, pub card_type_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
CardCancelResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/utils/connector_onboarding/paypal.rs Public functions: 3 use common_utils::request::{Method, Request, RequestBuilder, RequestContent}; use error_stack::ResultExt; use http::header; use crate::{ connector, core::errors::{ApiErrorResponse, RouterResult}, routes::SessionState, ty...
crates/router/src/utils/connector_onboarding/paypal.rs
router
full_file
524
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MonerisErrorResponse { pub status: u16, pub category: String, pub title: String, pub errors: Option<Vec<MonerisError>>, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
MonerisErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CardRequestValidated;
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
struct_definition
7
rust
CardRequestValidated
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentPostCaptureVoid for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
12
rust
null
Nuvei
api::PaymentPostCaptureVoid for
impl api::PaymentPostCaptureVoid for for Nuvei
null
null
null
null
null
null
null
null
pub async fn customers_update() {}
crates/openapi/src/routes/customers.rs
openapi
function_signature
7
rust
null
null
null
null
customers_update
null
null
null
null
null
null
null
pub async fn connector_delete() {}
crates/openapi/src/routes/merchant_connector_account.rs
openapi
function_signature
7
rust
null
null
null
null
connector_delete
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CurrentBlockThreshold { "type": "object", "properties": { "duration_in_mins": { "type": "integer", "format": "int64", "nullable": true, "minimum": 0 }, "max_total_count": { "type": "integer", "format": "int64", "nullable": ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
105
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CurrentBlockThreshold" ]
null
null
null
null
pub struct RefundSearchInput { id: IdFilter, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
RefundSearchInput
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/api-key/api-key--update.mdx # Type: Doc File --- openapi: post /api_keys/{merchant_id}/{key_id} ---
api-reference/v1/api-key/api-key--update.mdx
null
doc_file
37
doc
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/profile/profile--retrieve-active-routing-algorithm.mdx # Type: Doc File --- openapi: get /v2/profiles/{id}/routing-algorithm ---
api-reference/v2/profile/profile--retrieve-active-routing-algorithm.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs Public functions: 2 Public structs: 20 use base64::Engine; use cards::CardNumber; use common_enums::{enums, AttemptStatus}; use common_utils::{consts, errors::CustomResult, request::Method}; use error_stack::ResultExt; use hyperswitch_domain...
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
full_file
6,014
null
null
null
null
null
null
null
null
null
null
null
null
null
#[cfg(feature = "v1")] impl TryFrom<(payment_methods::PaymentMethodRecord, id_type::MerchantId)> for PaymentMethodCustomerMigrate { type Error = error_stack::Report<ValidationError>; fn try_from( value: (payment_methods::PaymentMethodRecord, id_type::MerchantId), ) -> Result<Self, Self::Error> ...
crates/hyperswitch_domain_models/src/payment_methods.rs#chunk1
hyperswitch_domain_models
chunk
2,359
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Trustpay {}
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
impl_block
7
rust
null
Trustpay
ConnectorValidation for
impl ConnectorValidation for for Trustpay
null
null
null
null
null
null
null
null
File: crates/analytics/src/api_event/metrics/status_code_count.rs use std::collections::HashSet; use api_models::analytics::{ api_event::{ApiEventDimensions, ApiEventFilters, ApiEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use...
crates/analytics/src/api_event/metrics/status_code_count.rs
analytics
full_file
757
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn supports_access_token_for_payout(self, payout_method: Option<PayoutType>) -> bool { matches!((self, payout_method), (Self::Paypal, _)) }
crates/common_enums/src/connector_enums.rs
common_enums
function_signature
40
rust
null
null
null
null
supports_access_token_for_payout
null
null
null
null
null
null
null
impl ConnectorSpecifications for Threedsecureio { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&THREEDSECUREIO_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } fn get_supported_webhook_flows(&se...
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
98
rust
null
Threedsecureio
ConnectorSpecifications for
impl ConnectorSpecifications for for Threedsecureio
null
null
null
null
null
null
null
null
impl<Secret, MaskingStrategy> PartialEq for StrongSecret<Secret, MaskingStrategy> where Self: PeekInterface<Secret>, Secret: ZeroizableSecret + StrongEq, { fn eq(&self, other: &Self) -> bool { StrongEq::strong_eq(self.peek(), other.peek()) } }
crates/masking/src/strong_secret.rs
masking
impl_block
69
rust
null
StrongSecret
PartialEq for
impl PartialEq for for StrongSecret
null
null
null
null
null
null
null
null
pub async fn retrieve_payment_method_from_vault_external( state: &routes::SessionState, merchant_account: &domain::MerchantAccount, pm: &domain::PaymentMethod, merchant_connector_account: domain::MerchantConnectorAccountTypeDetails, ) -> RouterResult<pm_types::VaultRetrieveResponse> { let connector_...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
448
rust
null
null
null
null
retrieve_payment_method_from_vault_external
null
null
null
null
null
null
null
impl ApiKeyInterface for KafkaStore { async fn insert_api_key( &self, api_key: storage::ApiKeyNew, ) -> CustomResult<storage::ApiKey, errors::StorageError> { self.diesel_store.insert_api_key(api_key).await } async fn update_api_key( &self, merchant_id: id_type::M...
crates/router/src/db/kafka_store.rs
router
impl_block
452
rust
null
KafkaStore
ApiKeyInterface for
impl ApiKeyInterface for for KafkaStore
null
null
null
null
null
null
null
null