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
impl ConnectorCommon for Santander { fn id(&self) -> &'static str { "santander" } 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, connector...
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
486
rust
null
Santander
ConnectorCommon for
impl ConnectorCommon for for Santander
null
null
null
null
null
null
null
null
pub fn get_tax_processor_config(key: &str) -> JsResult { let key = api_model_enums::TaxConnectors::from_str(key) .map_err(|_| "Invalid key received".to_string())?; let res = connector::ConnectorConfig::get_tax_processor_config(key)?; Ok(serde_wasm_bindgen::to_value(&res)?) }
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
78
rust
null
null
null
null
get_tax_processor_config
null
null
null
null
null
null
null
/// Create a new GlobalPaymentMethodSessionId from cell id information pub fn generate( cell_id: &CellId, ) -> error_stack::Result<Self, GlobalPaymentMethodSessionIdError> { let global_id = GlobalId::generate(cell_id, GlobalEntity::PaymentMethodSession); Ok(Self(global_id)) }
crates/common_utils/src/id_type/global_id/payment_methods.rs
common_utils
function_signature
71
rust
null
null
null
null
generate
null
null
null
null
null
null
null
pub struct PartnerReferralThirdPartyDetails { pub features: Vec<PayPalFeatures>, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
20
rust
PartnerReferralThirdPartyDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Sift {}
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
9
rust
null
Sift
api::PaymentSession for
impl api::PaymentSession for for Sift
null
null
null
null
null
null
null
null
impl<T: Clone, S: SecretState> SecretStateContainer<T, S> { /// Get the inner data while consuming self #[inline] pub fn into_inner(self) -> T { self.inner } /// Get the reference to inner value #[inline] pub fn get_inner(&self) -> &T { &self.inner } }
crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs
hyperswitch_interfaces
impl_block
81
rust
null
SecretStateContainer
null
impl SecretStateContainer
null
null
null
null
null
null
null
null
impl api::PaymentSession for Billwerk {}
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
impl_block
9
rust
null
Billwerk
api::PaymentSession for
impl api::PaymentSession for for Billwerk
null
null
null
null
null
null
null
null
pub async fn find_pm_collect_link_by_link_id( conn: &PgPooledConn, link_id: &str, ) -> StorageResult<PaymentMethodCollectLink> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::link_id.eq(link_id.to_owned()), ) .await ...
crates/diesel_models/src/query/generic_link.rs
diesel_models
function_signature
131
rust
null
null
null
null
find_pm_collect_link_by_link_id
null
null
null
null
null
null
null
impl api::Payment for Inespay {}
crates/hyperswitch_connectors/src/connectors/inespay.rs
hyperswitch_connectors
impl_block
9
rust
null
Inespay
api::Payment for
impl api::Payment for for Inespay
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/metrics.rs //! Metrics interface use router_env::{counter_metric, global_meter}; global_meter!(GLOBAL_METER, "ROUTER_API"); counter_metric!(UNIMPLEMENTED_FLOW, GLOBAL_METER);
crates/hyperswitch_interfaces/src/metrics.rs
hyperswitch_interfaces
full_file
51
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, amount_converter_webhooks: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
function_signature
41
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for ProfileAcquirerResponse {}
crates/api_models/src/profile_acquirer.rs
api_models
impl_block
15
rust
null
ProfileAcquirerResponse
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for ProfileAcquirerResponse
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/default_implementations.rs #[cfg(feature = "dummy_connector")] use common_enums::{CallConnectorAction, PaymentAction}; // impl api::PaymentIncrementalAuthorization for Helcim {} // impl api::ConnectorCustomer for Helcim {} // impl api::PaymentsPreProcessing for Helcim {} // impl...
crates/hyperswitch_connectors/src/default_implementations.rs#chunk0
hyperswitch_connectors
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Customer { pub merchant_id: id_type::MerchantId, #[encrypt] pub name: Option<Encryptable<Secret<String>>>, #[encrypt] pub email: Option<Encryptable<Secret<String, pii::EmailStrategy>>>, #[encrypt] pub phone: Option<Encryptable<Secret<String>>>, pub phone_country_code: Option<S...
crates/hyperswitch_domain_models/src/customer.rs
hyperswitch_domain_models
struct_definition
239
rust
Customer
null
null
null
null
null
null
null
null
null
null
null
/// Check whether the merchant has configured to disable the webhook `event` for the `connector` /// First check for the key "whconf_{merchant_id}_{connector_id}" in redis, /// if not found, fetch from configs table in database pub async fn is_webhook_event_disabled( db: &dyn StorageInterface, connector_id: &st...
crates/router/src/core/webhooks/utils.rs
router
function_signature
334
rust
null
null
null
null
is_webhook_event_disabled
null
null
null
null
null
null
null
File: crates/router/tests/connectors/hyperwallet.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct Hyperwallet...
crates/router/tests/connectors/hyperwallet.rs
router
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { #[cfg(feature = "frm")] amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
function_signature
36
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn connector_create() {}
crates/openapi/src/routes/merchant_connector_account.rs
openapi
function_signature
7
rust
null
null
null
null
connector_create
null
null
null
null
null
null
null
pub redirection_data: Option<router_response_types::RedirectForm>, pub connector_metadata: Option<pii::SecretSerdeValue>, pub amount_capturable: Option<MinorUnit>, pub connector_token_details: Option<diesel_models::ConnectorTokenDetails>, pub connector_response_reference_id: Option<String>, } #[cfg...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs#chunk2
hyperswitch_domain_models
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_mandates_list( state: web::Data<AppState>, req: HttpRequest, payload: web::Query<api_models::mandates::MandateListConstraints>, ) -> HttpResponse { let flow = Flow::MandatesList; let payload = payload.into_inner(); Box::pin(api::server_wrap( flow, state, ...
crates/router/src/routes/mandates.rs
router
function_signature
228
rust
null
null
null
null
retrieve_mandates_list
null
null
null
null
null
null
null
impl Paypal { pub fn get_order_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { //Handled error response separately for Orders as the end point is different for Orders - (Authorize) and Pa...
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
494
rust
null
Paypal
null
impl Paypal
null
null
null
null
null
null
null
null
impl ConnectorCommon for Coingate { fn id(&self) -> &'static str { "coingate" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&s...
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
434
rust
null
Coingate
ConnectorCommon for
impl ConnectorCommon for for Coingate
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ChargeRefunds { "type": "object", "description": "Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.", "required": [ "charge_id" ], "properties": { "charge_id": { "type": ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
211
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ChargeRefunds" ]
null
null
null
null
File: crates/diesel_models/src/query/mandate.rs Public functions: 6 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, Table}; use error_stack::report; use super::generics; use crate::{errors, mandate::*, schema::mandate::dsl, PgPooledConn, StorageResult}; impl MandateNew { pub async...
crates/diesel_models/src/query/mandate.rs
diesel_models
full_file
802
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GenerateAuthenticationReport; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), |state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move { ...
crates/router/src/analytics.rs
router
impl_block
298
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct PaymentsMandateReference( pub HashMap<common_utils::id_type::MerchantConnectorAccountId, PaymentsMandateReferenceRecord>, );
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
30
rust
PaymentsMandateReference
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/lib.rs #![allow(clippy::result_large_err)] pub mod backend; pub mod dssa; pub mod enums; pub mod frontend; pub mod types;
crates/euclid/src/lib.rs
euclid
full_file
40
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DeletePaymentMethodFromVaultInputData { payment_method_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
DeletePaymentMethodFromVaultInputData
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Dwolla { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn get...
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
impl_block
963
rust
null
Dwolla
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Dwolla
null
null
null
null
null
null
null
null
impl Bankofamerica { pub fn new() -> &'static Self { &Self { amount_convertor: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
impl_block
37
rust
null
Bankofamerica
null
impl Bankofamerica
null
null
null
null
null
null
null
null
pub struct MonerisPaymentsRequest { idempotency_key: String, amount: Amount, payment_method: PaymentMethod, automatic_capture: bool, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
MonerisPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl RelationResolution { pub fn get_resolved_relation(prev_relation: Self, curr_relation: Self) -> Self { if prev_relation != curr_relation { Self::Contradiction } else { curr_relation } } }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
impl_block
52
rust
null
RelationResolution
null
impl RelationResolution
null
null
null
null
null
null
null
null
/// Retrieves the appropriate encryption client based on the configuration. pub async fn get_encryption_management_client( &self, ) -> CustomResult<Arc<dyn EncryptionManagementInterface>, EncryptionError> { Ok(match self { #[cfg(feature = "aws_kms")] Self::AwsKms { aws_km...
crates/external_services/src/managers/encryption_management.rs
external_services
function_signature
108
rust
null
null
null
null
get_encryption_management_client
null
null
null
null
null
null
null
impl Default for ZeroMandates { fn default() -> Self { Self { supported_payment_methods: SupportedPaymentMethodsForMandate(HashMap::new()), } } }
crates/payment_methods/src/configs/payment_connector_required_fields.rs
payment_methods
impl_block
40
rust
null
ZeroMandates
Default for
impl Default for for ZeroMandates
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/payment_count.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use time::Pr...
crates/analytics/src/payments/metrics/payment_count.rs
analytics
full_file
925
null
null
null
null
null
null
null
null
null
null
null
null
null
impl UserKeyStoreInterface for KafkaStore { async fn insert_user_key_store( &self, state: &KeyManagerState, user_key_store: domain::UserKeyStore, key: &Secret<Vec<u8>>, ) -> CustomResult<domain::UserKeyStore, errors::StorageError> { self.diesel_store .insert_u...
crates/router/src/db/kafka_store.rs
router
impl_block
269
rust
null
KafkaStore
UserKeyStoreInterface for
impl UserKeyStoreInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct RecurlyInvoiceSyncResponse { pub id: String, pub total: FloatMajorUnit, pub currency: common_enums::Currency, pub address: Option<RecurlyInvoiceBillingAddress>, pub line_items: Vec<RecurlyLineItems>, pub transactions: Vec<RecurlyInvoiceTransactionsStatus>, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
73
rust
RecurlyInvoiceSyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_update.rs Public structs: 1 use std::marker::PhantomData; use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use async_trait::async_trait; use common_utils::{ ext_traits::{AsyncExt, Encode, ValueEx...
crates/router/src/core/payments/operations/payment_update.rs#chunk0
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_total_amount(&self) -> MinorUnit { self.order_amount + self.shipping_cost.unwrap_or_default() + self.order_tax_amount.unwrap_or_default() + self.surcharge_amount.unwrap_or_default() + self.tax_on_surcharge.unwrap_or_default() }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
61
rust
null
null
null
null
get_total_amount
null
null
null
null
null
null
null
impl ConnectorPreAuthenticationVersionCall for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
12
rust
null
Threedsecureio
ConnectorPreAuthenticationVersionCall for
impl ConnectorPreAuthenticationVersionCall for for Threedsecureio
null
null
null
null
null
null
null
null
pub struct MetricsBucketResponse { #[serde(flatten)] pub values: PaymentMetricsBucketValue, #[serde(flatten)] pub dimensions: PaymentMetricsBucketIdentifier, }
crates/api_models/src/analytics/payments.rs
api_models
struct_definition
37
rust
MetricsBucketResponse
null
null
null
null
null
null
null
null
null
null
null
macro_rules! impl_get_tenant_for_request { ($ty:ident) => { impl GetKeymanagerTenant for $ty { fn get_tenant_id(&self, state: &KeyManagerState) -> id_type::TenantId { match self.identifier { Identifier::User(_) | Identifier::UserAuth(_) => state.global_tenan...
crates/common_utils/src/types/keymanager.rs
common_utils
macro
97
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
File: crates/hyperswitch_connectors/src/connectors/razorpay.rs Public functions: 1 Public structs: 1 pub mod transformers; use base64::Engine; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{...
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
full_file
6,501
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ExternalToken { pub async fn new_token( user_id: String, merchant_id: id_type::MerchantId, settings: &Settings, external_service_type: ExternalServiceType, ) -> UserResult<String> { let exp_duration = std::time::Duration::from_secs(consts::JWT_TOKEN_TIME_IN_SECS); ...
crates/router/src/services/authentication.rs
router
impl_block
205
rust
null
ExternalToken
null
impl ExternalToken
null
null
null
null
null
null
null
null
pub fn add_apple_pay_payment_status_metrics( payment_attempt_status: enums::AttemptStatus, apple_pay_flow: Option<domain::ApplePayFlow>, connector: Option<String>, merchant_id: id_type::MerchantId, ) { if payment_attempt_status == enums::AttemptStatus::Charged { if let Some(flow) = apple_pay...
crates/router/src/utils.rs
router
function_signature
400
rust
null
null
null
null
add_apple_pay_payment_status_metrics
null
null
null
null
null
null
null
pub struct FiservemeaAuthType { pub(super) api_key: Secret<String>, pub(super) secret_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
FiservemeaAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/global_id/customer.rs Public functions: 2 use crate::errors; crate::global_id_type!( GlobalCustomerId, "A global id that can be used to identify a customer. The format will be `<cell_id>_<entity_prefix>_<time_ordered_id>`. Example: `cell1_cus_uu1a2b3c4d5e6f7g8h9i0j1k2l...
crates/common_utils/src/id_type/global_id/customer.rs
common_utils
full_file
375
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantAccountResponse { /// The identifier for the Merchant Account #[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// Name of the Merchant Account #[schema(value_type = Option<String>,example = "NewAge Reta...
crates/api_models/src/admin.rs
api_models
struct_definition
1,180
rust
MerchantAccountResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_signature( &self, auth: payone::PayoneAuthType, http_method: String, canonicalized_path: String, content_type: String, date_header: String, ) -> CustomResult<String, ConnectorError> { let payone::PayoneAuthType { api_key, ...
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
function_signature
206
rust
null
null
null
null
generate_signature
null
null
null
null
null
null
null
pub struct ListRolesAtEntityLevelRequest { pub entity_type: EntityType, }
crates/api_models/src/user_role/role.rs
api_models
struct_definition
17
rust
ListRolesAtEntityLevelRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/apple_pay_certificates_migration") .app_data(web::Data::new(state)) .service(web::resource("").route( web::post().to(apple_pay_certificates_migration::apple_pay_certificates_migration), )) }
crates/router/src/routes/app.rs
router
function_signature
64
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct EbanxErrorResponse { pub code: String, pub status_code: String, pub message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
EbanxErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Coinbase {}
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
8
rust
null
Coinbase
api::PaymentSync for
impl api::PaymentSync for for Coinbase
null
null
null
null
null
null
null
null
pub struct Customers;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Customers
null
null
null
null
null
null
null
null
null
null
null
impl GetPaymentMethodType for VoucherData { fn get_payment_method_type(&self) -> api_enums::PaymentMethodType { match self { Self::Boleto(_) => api_enums::PaymentMethodType::Boleto, Self::Efecty => api_enums::PaymentMethodType::Efecty, Self::PagoEfectivo => api_enums::Pay...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
impl_block
306
rust
null
VoucherData
GetPaymentMethodType for
impl GetPaymentMethodType for for VoucherData
null
null
null
null
null
null
null
null
pub struct CommitResponse { pub id: String, pub status: String, pub created_on: String, pub last_updated: String, pub source_id: Secret<String>, pub destination_id: Secret<String>, pub payment_reference: String, pub amount: FloatMajorUnit, pub currency_code: Currency, pub purpose...
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
104
rust
CommitResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerRequest { /// The merchant identifier for the customer object. #[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")] pub merchant_reference_id: Option<id_type::CustomerId>, /// The customer's name #[schema(max_length = ...
crates/api_models/src/customers.rs
api_models
struct_definition
497
rust
CustomerRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ForteErrorResponse { pub response: ErrorResponseStatus, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
ForteErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CheckoutWebhookEventTypeBody { #[serde(rename = "type")] pub transaction_type: CheckoutWebhookEventType, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
CheckoutWebhookEventTypeBody
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeRequestTds20Data { communication_data: DeutschebankThreeDSInitializeRequestCommunicationData, customer_data: DeutschebankThreeDSInitializeRequestCustomerData, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
DeutschebankThreeDSInitializeRequestTds20Data
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct MerchantInitiatedTransaction { reason: Option<String>, //Required for recurring mandates payment original_authorized_amount: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
MerchantInitiatedTransaction
null
null
null
null
null
null
null
null
null
null
null
impl Default for TtlForExtendedCardInfo { fn default() -> Self { Self(consts::DEFAULT_TTL_FOR_EXTENDED_CARD_INFO) } }
crates/api_models/src/admin.rs
api_models
impl_block
33
rust
null
TtlForExtendedCardInfo
Default for
impl Default for for TtlForExtendedCardInfo
null
null
null
null
null
null
null
null
impl api::MandateSetup for Dwolla {}
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
impl_block
11
rust
null
Dwolla
api::MandateSetup for
impl api::MandateSetup for for Dwolla
null
null
null
null
null
null
null
null
pub struct OrganizationUpdateRequest { /// Name of the organization pub organization_name: Option<String>, /// Details about the organization #[schema(value_type = Option<Object>)] pub organization_details: Option<pii::SecretSerdeValue>, /// Metadata is useful for storing additional, unstructu...
crates/api_models/src/organization.rs
api_models
struct_definition
136
rust
OrganizationUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/katapult.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct KatapultTest; ...
crates/router/tests/connectors/katapult.rs
router
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CaptureUpdateInternal { pub status: Option<storage_enums::CaptureStatus>, pub error_message: Option<String>, pub error_code: Option<String>, pub error_reason: Option<String>, pub modified_at: Option<PrimitiveDateTime>, pub connector_capture_id: Option<ConnectorTransactionId>, pub ...
crates/diesel_models/src/capture.rs
diesel_models
struct_definition
85
rust
CaptureUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
pub struct NomupayAuthType { pub(super) kid: Secret<String>, #[cfg(feature = "payouts")] pub(super) eid: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
NomupayAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct Flexiti { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
struct_definition
27
rust
Flexiti
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetApiEvents; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req, _| async move { let payment_id = match req.query_param.clon...
crates/router/src/analytics.rs
router
impl_block
220
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct GetUserRoleDetailsRequest { pub email: pii::Email, }
crates/api_models/src/user.rs
api_models
struct_definition
16
rust
GetUserRoleDetailsRequest
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Hyperwallet { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemen...
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
210
rust
null
Hyperwallet
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Hyperwallet
null
null
null
null
null
null
null
null
/// Retrieves the details of the network token webhook type from callback mapper data. pub fn get_network_token_webhook_details( &self, ) -> (id_type::MerchantId, String, id_type::CustomerId) { match self { Self::NetworkTokenWebhook { merchant_id, paym...
crates/common_types/src/callback_mapper.rs
common_types
function_signature
98
rust
null
null
null
null
get_network_token_webhook_details
null
null
null
null
null
null
null
impl ConnectorSpecifications for Nuvei { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&NUVEI_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*NUVEI_SUPPORTED_PAYMENT_METHODS) } fn get_supported_...
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
109
rust
null
Nuvei
ConnectorSpecifications for
impl ConnectorSpecifications for for Nuvei
null
null
null
null
null
null
null
null
pub struct AffirmErrorResponse { pub status_code: u16, pub code: String, pub message: String, #[serde(rename = "type")] pub error_type: String, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
43
rust
AffirmErrorResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AdyenConnectorMetadata { "type": "object", "required": [ "testing" ], "properties": { "testing": { "$ref": "#/components/schemas/AdyenTestingData" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
63
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AdyenConnectorMetadata" ]
null
null
null
null
File: crates/router/src/core/blocklist/utils.rs Public functions: 7 use api_models::blocklist as api_blocklist; use common_enums::MerchantDecision; use common_utils::errors::CustomResult; use diesel_models::configs; use error_stack::ResultExt; use masking::StrongSecret; use super::{errors, transformers::generate_fin...
crates/router/src/core/blocklist/utils.rs
router
full_file
3,538
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Event { pub event_id: String, pub event_type: storage_enums::EventType, pub event_class: storage_enums::EventClass, pub is_webhook_notified: bool, pub primary_object_id: String, pub primary_object_type: storage_enums::EventObjectType, #[serde(with = "custom_serde::iso8601")] p...
crates/diesel_models/src/events.rs
diesel_models
struct_definition
238
rust
Event
null
null
null
null
null
null
null
null
null
null
null
pub struct Ideal { #[serde(rename = "issuerId")] pub issuer_id: Option<WorldlineBic>, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
Ideal
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutsUpdateMems { pub orig: Payouts, pub update_data: PayoutsUpdate, }
crates/diesel_models/src/kv.rs
diesel_models
struct_definition
28
rust
PayoutsUpdateMems
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/errors/transformers.rs use common_utils::errors::ErrorSwitch; use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse; use super::{CustomersErrorResponse, StorageError}; impl ErrorSwitch<api_models::errors::types::ApiErrorResponse> for CustomersErrorResponse { fn ...
crates/router/src/core/errors/transformers.rs
router
full_file
493
null
null
null
null
null
null
null
null
null
null
null
null
null
impl KeyManagerState { pub fn add_confirm_value_in_infra_values( &self, is_confirm_operation: bool, ) -> Option<serde_json::Value> { self.infra_values.clone().map(|mut infra_values| { if is_confirm_operation { infra_values.as_object_mut().map(|obj| { ...
crates/common_utils/src/types/keymanager.rs
common_utils
impl_block
107
rust
null
KeyManagerState
null
impl KeyManagerState
null
null
null
null
null
null
null
null
impl MessagingInterface for EventsHandler { type MessageClass = EventType; fn send_message<T>( &self, data: T, metadata: HashMap<String, String>, timestamp: PrimitiveDateTime, ) -> error_stack::Result<(), EventsError> where T: Message<Class = Self::MessageClass> ...
crates/router/src/events.rs
router
impl_block
118
rust
null
EventsHandler
MessagingInterface for
impl MessagingInterface for for EventsHandler
null
null
null
null
null
null
null
null
capture_method: storage_model.capture_method, capture_on: storage_model.capture_on, confirm: storage_model.confirm, authentication_type: storage_model.authentication_type, created_at: Some(storage_model.created_at), modified_at: Some(storage_model....
crates/storage_impl/src/payments/payment_attempt.rs#chunk2
storage_impl
chunk
1,177
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NmiActionBody { pub action_type: NmiActionType, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
NmiActionBody
null
null
null
null
null
null
null
null
null
null
null
pub struct DeviceDetails { pub device_channel: api_models::payments::DeviceChannel, pub browser_info: Option<BrowserInfo>, pub sdk_info: Option<api_models::payments::SdkInformation>, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
DeviceDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct BillwerkCustomerObject { handle: Option<id_type::CustomerId>, email: Option<Email>, address: Option<Secret<String>>, address2: Option<Secret<String>>, city: Option<String>, country: Option<common_enums::CountryAlpha2>, first_name: Option<Secret<String>>, last_name: Option<Secr...
crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs
hyperswitch_connectors
struct_definition
79
rust
BillwerkCustomerObject
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Ebanx { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, ConnectorError> { Err(report!(ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type( &self, ...
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
174
rust
null
Ebanx
IncomingWebhook for
impl IncomingWebhook for for Ebanx
null
null
null
null
null
null
null
null
pub struct CancelResponseStatus { pub response_type: String, pub response_code: ForteResponseCode, pub response_desc: String, pub authorization_code: String, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
CancelResponseStatus
null
null
null
null
null
null
null
null
null
null
null
pub async fn add_payment_method_token<F: Clone, T: types::Tokenizable + Clone>( state: &SessionState, connector: &api::ConnectorData, tokenization_action: &payments::TokenizationAction, router_data: &mut types::RouterData<F, T, types::PaymentsResponseData>, pm_token_request_data: types::PaymentMetho...
crates/router/src/core/payments/tokenization.rs
router
function_signature
593
rust
null
null
null
null
add_payment_method_token
null
null
null
null
null
null
null
pub struct RefundResponse { refund_transaction_id: i32, refund_status: BluesnapRefundStatus, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for CtpMastercard { fn id(&self) -> &'static str { "ctp_mastercard" } fn base_url<'a>(&self, _connectors: &'a Connectors) -> &'a str { "" } }
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
56
rust
null
CtpMastercard
ConnectorCommon for
impl ConnectorCommon for for CtpMastercard
null
null
null
null
null
null
null
null
pub struct RefundWorkflowRouter;
crates/router/src/workflows/refund_router.rs
router
struct_definition
7
rust
RefundWorkflowRouter
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodCreate { /// The type of payment method use for the payment. #[schema(value_type = PaymentMethod,example = "card")] pub payment_method: Option<api_enums::PaymentMethod>, /// This is a sub-category of payment method. #[schema(value_type = Option<PaymentMethodType>,example = "...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
785
rust
PaymentMethodCreate
null
null
null
null
null
null
null
null
null
null
null
/// get_payment_method_surcharge_routing_id pub fn get_payment_method_surcharge_routing_id(&self) -> String { format!("payment_method_surcharge_id_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
42
rust
null
null
null
null
get_payment_method_surcharge_routing_id
null
null
null
null
null
null
null
pub struct RoutingMetadata { pub kind: enums::RoutingAlgorithmKind, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
16
rust
RoutingMetadata
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorAuthType { pub fn from_option_secret_value( value: Option<common_utils::pii::SecretSerdeValue>, ) -> common_utils::errors::CustomResult<Self, common_utils::errors::ParsingError> { value .parse_value::<Self>("ConnectorAuthType") .change_context(common_utils::...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
impl_block
751
rust
null
ConnectorAuthType
null
impl ConnectorAuthType
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Cryptopay { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn ...
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
827
rust
null
Cryptopay
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Cryptopay
null
null
null
null
null
null
null
null
impl api::RefundSync for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
10
rust
null
Katapult
api::RefundSync for
impl api::RefundSync for for Katapult
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs Public functions: 1 Public structs: 14 #[cfg(all(feature = "v2", feature = "revenue_recovery"))] use std::str::FromStr; use common_enums::enums; #[cfg(all(feature = "v2", feature = "revenue_recovery"))] use common_utils::types::{ConnectorTra...
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
full_file
3,714
null
null
null
null
null
null
null
null
null
null
null
null
null