text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
File: crates/router/src/core/utils.rs Public functions: 40 pub mod refunds_transformers; pub mod refunds_validator; use std::{collections::HashSet, marker::PhantomData, str::FromStr}; use api_models::enums::{Connector, DisputeStage, DisputeStatus}; #[cfg(feature = "payouts")] use api_models::payouts::PayoutVendorAc...
crates/router/src/core/utils.rs#chunk0
router
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
Ok(get_status(response.kind.as_str())) } fn get_webhook_resource_object( &self, request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::ConnectorError> { let notif = get_webhook_object_from_body(request.body) ...
crates/hyperswitch_connectors/src/connectors/braintree.rs#chunk1
hyperswitch_connectors
chunk
2,475
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Helcim { pub fn connector_transaction_id( &self, connector_meta: Option<&serde_json::Value>, ) -> CustomResult<Option<String>, errors::ConnectorError> { let meta: helcim::HelcimMetaData = to_connector_meta(connector_meta.cloned())?; Ok(Some(meta.preauth_transaction_id.to_str...
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
78
rust
null
Helcim
null
impl Helcim
null
null
null
null
null
null
null
null
impl api::PayoutCancel for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
9
rust
null
Stripe
api::PayoutCancel for
impl api::PayoutCancel for for Stripe
null
null
null
null
null
null
null
null
pub struct RawPaymentCounterparty<'a, F> { pub item: &'a AdyenPlatformRouterData<&'a PayoutsRouterData<F>>, pub raw_payout_method_data: payouts::PayoutMethodData, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
49
rust
RawPaymentCounterparty
null
null
null
null
null
null
null
null
null
null
null
impl CardsInfoInterface for KafkaStore { type Error = errors::StorageError; async fn get_card_info( &self, card_iin: &str, ) -> CustomResult<Option<storage::CardInfo>, errors::StorageError> { self.diesel_store.get_card_info(card_iin).await } async fn add_card_info( &...
crates/router/src/db/kafka_store.rs
router
impl_block
183
rust
null
KafkaStore
CardsInfoInterface for
impl CardsInfoInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct BankAccountDetailsBacs { pub account_number: Secret<String>, pub sort_code: Secret<String>, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
25
rust
BankAccountDetailsBacs
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_revenue_recovery_process_tracker( state: SessionState, id: id_type::GlobalPaymentId, ) -> RouterResponse<revenue_recovery::RevenueRecoveryResponse> { let db = &*state.store; let task = EXECUTE_WORKFLOW; let runner = storage::ProcessTrackerRunner::PassiveRecoveryWorkflow; le...
crates/router/src/core/revenue_recovery.rs
router
function_signature
445
rust
null
null
null
null
retrieve_revenue_recovery_process_tracker
null
null
null
null
null
null
null
impl api::PaymentCapture for Nordea {}
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
9
rust
null
Nordea
api::PaymentCapture for
impl api::PaymentCapture for for Nordea
null
null
null
null
null
null
null
null
pub async fn create_payment_method_for_intent( state: &SessionState, metadata: Option<common_utils::pii::SecretSerdeValue>, customer_id: &id_type::GlobalCustomerId, payment_method_id: id_type::GlobalPaymentMethodId, merchant_id: &id_type::MerchantId, key_store: &domain::MerchantKeyStore, sto...
crates/router/src/core/payment_methods.rs
router
function_signature
412
rust
null
null
null
null
create_payment_method_for_intent
null
null
null
null
null
null
null
pub struct PaymentsTokenReference( pub HashMap<common_utils::id_type::MerchantConnectorAccountId, ConnectorTokenReferenceRecord>, );
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
26
rust
PaymentsTokenReference
null
null
null
null
null
null
null
null
null
null
null
pub struct SubmitSingleCaptureResult { response: CaptureResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
SubmitSingleCaptureResult
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/payment_method.rs Public functions: 23 /// PaymentMethods - Create /// /// Creates and stores a payment method against a customer. /// In case of cards, this API should be used only by PCI compliant merchants. #[utoipa::path( post, path = "/payment_methods", request_body ( ...
crates/openapi/src/routes/payment_method.rs
openapi
full_file
5,082
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/worldpay.rs Public structs: 1 mod requests; mod response; pub mod transformers; use std::sync::LazyLock; use api_models::{payments::PaymentIdType, webhooks::IncomingWebhookEvent}; use common_enums::{enums, PaymentAction}; use common_utils::{ crypto, errors:...
crates/hyperswitch_connectors/src/connectors/worldpay.rs#chunk0
hyperswitch_connectors
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
impl auth_service::AuthServiceExchangeToken for Plaid {}
crates/pm_auth/src/connector/plaid.rs
pm_auth
impl_block
11
rust
null
Plaid
auth_service::AuthServiceExchangeToken for
impl auth_service::AuthServiceExchangeToken for for Plaid
null
null
null
null
null
null
null
null
pub struct PaymentMethodListResponseForSession { /// The list of payment methods that are enabled for the business profile pub payment_methods_enabled: Vec<ResponsePaymentMethodTypes>, /// The list of saved payment methods of the customer pub customer_payment_methods: Vec<CustomerPaymentMethodResponseI...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
63
rust
PaymentMethodListResponseForSession
null
null
null
null
null
null
null
null
null
null
null
pub struct ShippingAddress { address: Option<Address>, name: Option<ShippingName>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
ShippingAddress
null
null
null
null
null
null
null
null
null
null
null
pub struct RequestExtendedAuthorizationBool(bool);
crates/common_types/src/primitive_wrappers.rs
common_types
struct_definition
8
rust
RequestExtendedAuthorizationBool
null
null
null
null
null
null
null
null
null
null
null
pub struct SignifydPaymentsCheckoutRequest { checkout_id: String, order_id: String, purchase: Purchase, coverage_requests: Option<CoverageRequests>, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
37
rust
SignifydPaymentsCheckoutRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Opennode {}
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
8
rust
null
Opennode
ConnectorValidation for
impl ConnectorValidation for for Opennode
null
null
null
null
null
null
null
null
impl AuthEventMetricsAccumulator { pub fn collect(self) -> AuthEventMetricsBucketValue { AuthEventMetricsBucketValue { authentication_count: self.authentication_count.collect(), authentication_attempt_count: self.authentication_attempt_count.collect(), authentication_succ...
crates/analytics/src/auth_events/accumulator.rs
analytics
impl_block
192
rust
null
AuthEventMetricsAccumulator
null
impl AuthEventMetricsAccumulator
null
null
null
null
null
null
null
null
impl EliminationRoutingAlgorithm { pub fn update_enabled_features(&mut self, feature_to_enable: DynamicRoutingFeatures) { self.enabled_feature = feature_to_enable } }
crates/api_models/src/routing.rs
api_models
impl_block
37
rust
null
EliminationRoutingAlgorithm
null
impl EliminationRoutingAlgorithm
null
null
null
null
null
null
null
null
pub async fn get_action_url( state: SessionState, user_from_token: auth::UserFromToken, request: api::ActionUrlRequest, _req_state: ReqState, ) -> RouterResponse<api::ActionUrlResponse> { utils::check_if_connector_exists(&state, &request.connector_id, &user_from_token.merchant_id) .await?; ...
crates/router/src/core/connector_onboarding.rs
router
function_signature
272
rust
null
null
null
null
get_action_url
null
null
null
null
null
null
null
pub fn payment_method_session_list_payment_methods() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
10
rust
null
null
null
null
payment_method_session_list_payment_methods
null
null
null
null
null
null
null
File: crates/euclid/src/backend/interpreter/types.rs Public structs: 2 use std::{collections::HashMap, fmt, ops::Deref, string::ToString}; use serde::Serialize; use crate::{backend::inputs, frontend::ast::ValueType, types::EuclidKey}; #[derive(Debug, Clone, Serialize, thiserror::Error)] #[serde(tag = "type", conte...
crates/euclid/src/backend/interpreter/types.rs
euclid
full_file
527
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AccessTokenAuthenticationResponse { pub code: Secret<String>, pub expires: i64, }
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
22
rust
AccessTokenAuthenticationResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn send_request( client_proxy: &Proxy, request: Request, option_timeout_secs: Option<u64>, ) -> CustomResult<reqwest::Response, HttpClientError> { logger::info!(method=?request.method, headers=?request.headers, payload=?request.body, ?request); let url = url::Url::parse(&request.url).chan...
crates/external_services/src/http_client.rs
external_services
function_signature
1,278
rust
null
null
null
null
send_request
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/refunds.rs //! Refunds interface use hyperswitch_domain_models::{ router_flow_types::{Execute, RSync}, router_request_types::RefundsData, router_response_types::RefundsResponseData, }; use crate::api::{self, ConnectorCommon}; /// trait RefundExecute pub trait ...
crates/hyperswitch_interfaces/src/api/refunds.rs
hyperswitch_interfaces
full_file
147
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
10
rust
null
Gocardless
api::PaymentToken for
impl api::PaymentToken for for Gocardless
null
null
null
null
null
null
null
null
impl RefundExecute for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
9
rust
null
Wellsfargo
RefundExecute for
impl RefundExecute for for Wellsfargo
null
null
null
null
null
null
null
null
pub fn spawn_async_lineage_context_update_to_db( state: &SessionState, user_id: &str, lineage_context: LineageContext, ) { let state = state.clone(); let lineage_context = lineage_context.clone(); let user_id = user_id.to_owned(); tokio::spawn(async move { match state .gl...
crates/router/src/utils/user.rs
router
function_signature
178
rust
null
null
null
null
spawn_async_lineage_context_update_to_db
null
null
null
null
null
null
null
pub fn get_dummy_connector_id(self) -> &'static str { match self { Self::PhonyPay => "phonypay", Self::FauxPay => "fauxpay", Self::PretendPay => "pretendpay", Self::StripeTest => "stripe_test", Self::AdyenTest => "adyen_test", Self::Checkou...
crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
hyperswitch_connectors
function_signature
101
rust
null
null
null
null
get_dummy_connector_id
null
null
null
null
null
null
null
impl GetCaptureMethod for PaymentsAuthorizeData { fn get_capture_method(&self) -> Option<enums::CaptureMethod> { self.capture_method } }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
impl_block
34
rust
null
PaymentsAuthorizeData
GetCaptureMethod for
impl GetCaptureMethod for for PaymentsAuthorizeData
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs Public functions: 1 Public structs: 42 use common_utils::{ ext_traits::Encode, types::{MinorUnit, StringMinorUnitForConnector}, }; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::PaymentMet...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,179
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { Box::pin(oss_api::server_wrap( Flow::RoutingRetrieveDefaultConfig, state, &req, (), |state, auth: auth::AuthenticationData, _, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( domain::Context(auth.merch...
crates/router/src/routes/routing.rs
router
impl_block
181
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl Trustpayments { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
impl_block
34
rust
null
Trustpayments
null
impl Trustpayments
null
null
null
null
null
null
null
null
/// The Applicative trait provides a pure behavior, /// which can be used to create values of type f a from values of type a. pub trait Applicative<R> { /// The Associative type acts as a (f a) wrapper for Self. type WrappedSelf<T>; /// Applicative::pure(_) is abstraction with lifts any arbitrary type to u...
crates/common_utils/src/fp_utils.rs
common_utils
trait_definition
96
rust
null
null
Applicative
null
null
null
null
null
null
null
null
null
impl Permission { pub fn scope(&self) -> PermissionScope { match self { #(#scope_impl_per),* } } pub fn entity_type(&self) -> EntityType { match self { #(#entity_impl_per),* } ...
crates/router_derive/src/macros/generate_permissions.rs
router_derive
impl_block
85
rust
null
Permission
null
impl Permission
null
null
null
null
null
null
null
null
pub async fn organization_update() {}
crates/openapi/src/routes/organization.rs
openapi
function_signature
7
rust
null
null
null
null
organization_update
null
null
null
null
null
null
null
pub struct TwoFactorAuthStatusResponseWithAttempts { pub totp: TwoFactorAuthAttempts, pub recovery_code: TwoFactorAuthAttempts, }
crates/api_models/src/user.rs
api_models
struct_definition
31
rust
TwoFactorAuthStatusResponseWithAttempts
null
null
null
null
null
null
null
null
null
null
null
impl EmailToken { pub async fn new_token( email: domain::UserEmail, entity: Option<Entity>, flow: domain::Origin, settings: &configs::Settings, ) -> UserResult<String> { let expiration_duration = std::time::Duration::from_secs(consts::EMAIL_TOKEN_TIME_IN_SECS); le...
crates/router/src/services/email/types.rs
router
impl_block
226
rust
null
EmailToken
null
impl EmailToken
null
null
null
null
null
null
null
null
pub fn is_invitable(&self) -> bool { self.is_invitable }
crates/router/src/services/authorization/roles.rs
router
function_signature
19
rust
null
null
null
null
is_invitable
null
null
null
null
null
null
null
pub struct CardDetail { /// Card Number #[schema(value_type = String,example = "4111111145551142")] pub card_number: CardNumber, /// Card Expiry Month #[schema(value_type = String,example = "10")] pub card_exp_month: masking::Secret<String>, /// Card Expiry Year #[schema(value_type = S...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
340
rust
CardDetail
null
null
null
null
null
null
null
null
null
null
null
pub struct Mandate { scheme: GocardlessScheme, metadata: MandateMetaData, payer_ip_address: Option<Secret<String, IpAddress>>, links: MandateLink, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
Mandate
null
null
null
null
null
null
null
null
null
null
null
pub fn is_us_local_network(&self) -> bool { match self { Self::Star | Self::Pulse | Self::Accel | Self::Nyce => true, Self::Interac | Self::CartesBancaires | Self::Visa | Self::Mastercard | Self::AmericanExpress | Self::JCB ...
crates/common_enums/src/enums.rs
common_enums
function_signature
123
rust
null
null
null
null
is_us_local_network
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/aci_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct AciSeleniumTest; impl SeleniumTest for AciSeleniumTest { fn get_connector_name(&self) -> String { "aci".to_string() } } async fn should_make_...
crates/test_utils/tests/connectors/aci_ui.rs
test_utils
full_file
2,248
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &id_type::GlobalPaymentId { self.payment_id }
crates/router/src/services/kafka/payment_intent_event.rs
router
function_signature
23
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
impl RedisTokenManager { /// Lock connector customer #[instrument(skip_all)] pub async fn lock_connector_customer_status( state: &SessionState, connector_customer_id: &str, payment_id: &id_type::GlobalPaymentId, ) -> CustomResult<bool, errors::StorageError> { let redis_co...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
impl_block
4,321
rust
null
RedisTokenManager
null
impl RedisTokenManager
null
null
null
null
null
null
null
null
pub struct CountAccumulator { pub count: Option<i64>, }
crates/analytics/src/refunds/accumulator.rs
analytics
struct_definition
17
rust
CountAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::{ext_traits::ConfigExt, fp_utils::when}; when(self.payment_attempts.is_default_or_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( "Opensearch Payment Attempts index must not be emp...
crates/analytics/src/opensearch.rs
analytics
function_signature
404
rust
null
null
null
null
validate
null
null
null
null
null
null
null
impl api::Payment for Custombilling {}
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
8
rust
null
Custombilling
api::Payment for
impl api::Payment for for Custombilling
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/payments.rs Public structs: 29 // Core related api layer. #[derive(Debug, Clone)] pub struct Authorize; #[derive(Debug, Clone)] pub struct AuthorizeSessionToken; #[derive(Debug, Clone)] pub struct CompleteAuthorize; #[derive(Debug, Clone)] pub struct App...
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
full_file
369
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct StaxTokenResponse { id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
StaxTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn extract_token_from_body(body: &[u8]) -> CustomResult<String, errors::ConnectorError> { let parsed: serde_json::Value = serde_json::from_slice(body) .map_err(|_| report!(errors::ConnectorError::ResponseDeserializationFailed))?; parsed .get("_links") .and_then(|links| links.get("ab...
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
function_signature
144
rust
null
null
null
null
extract_token_from_body
null
null
null
null
null
null
null
pub(crate) fn get_dispute_stage(code: &str) -> Result<enums::DisputeStage, errors::ConnectorError> { match code { "CHARGEBACK" => Ok(enums::DisputeStage::Dispute), "PRE_ARBITRATION" => Ok(enums::DisputeStage::PreArbitration), "RETRIEVAL" => Ok(enums::DisputeStage::PreDispute), _ => E...
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
function_signature
111
rust
null
null
null
null
get_dispute_stage
null
null
null
null
null
null
null
pub struct CompleteAuthorize;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
CompleteAuthorize
null
null
null
null
null
null
null
null
null
null
null
pub struct FullyParsedGooglePayToken { pub signature: Secret<String>, pub protocol_version: String, pub encrypted_message: String, pub ephemeral_public_key: String, pub tag: String, pub key_value: String, pub key_expiration: String, pub signatures: Vec<String>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
67
rust
FullyParsedGooglePayToken
null
null
null
null
null
null
null
null
null
null
null
/// uses the above rules and lowers the whole ast Program into DirProgram by specifying /// default_selection that is ast ConnectorSelection, a vector of DirRules and clones the metadata /// whatever comes in the ast_program pub fn lower_program<O: EuclidDirFilter>( program: ast::Program<O>, ) -> Result<dir::DirPro...
crates/euclid/src/frontend/ast/lowering.rs
euclid
function_signature
131
rust
null
null
null
null
lower_program
null
null
null
null
null
null
null
impl BizEmailProd { pub fn new( state: &SessionState, data: ProdIntent, theme_id: Option<String>, theme_config: EmailThemeConfig, ) -> UserResult<Self> { Ok(Self { recipient_email: domain::UserEmail::from_pii_email( state.conf.email.prod_intent...
crates/router/src/services/email/types.rs
router
impl_block
185
rust
null
BizEmailProd
null
impl BizEmailProd
null
null
null
null
null
null
null
null
impl ThreeDSRequestor { pub fn new( app_ip: Option<std::net::IpAddr>, psd2_sca_exemption_type: Option<common_enums::ScaExemptionType>, force_3ds_challenge: bool, message_version: SemanticVersion, ) -> Self { // if sca exemption is provided, we need to set the challenge in...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
impl_block
312
rust
null
ThreeDSRequestor
null
impl ThreeDSRequestor
null
null
null
null
null
null
null
null
pub fn to_storage_model(self) -> diesel_models::PaymentAttemptUpdate { match self { Self::Update { net_amount, currency, status, authentication_type, payment_method, payment_token, payment...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
2,119
rust
null
null
null
null
to_storage_model
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector } }
connector-template/mod.rs
connector-template
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl Customers { pub fn server(state: AppState) -> Scope { let mut route = web::scope("/v2/customers").app_data(web::Data::new(state)); #[cfg(all(feature = "olap", feature = "v2"))] { route = route .service(web::resource("/list").route(web::get().to(customers::cus...
crates/router/src/routes/app.rs
router
impl_block
259
rust
null
Customers
null
impl Customers
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/payment-method-session/payment-method-session--update-a-saved-payment-method.mdx # Type: Doc File --- openapi: put /v2/payment-method-sessions/{id}/update-saved-payment-method ---
api-reference/v2/payment-method-session/payment-method-session--update-a-saved-payment-method.mdx
null
doc_file
50
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs Public functions: 1 Public structs: 20 use cards::CardNumber; use common_enums::enums; use common_utils::{ pii::{IpAddress, SecretSerdeValue}, request::Method, types::MinorUnit, }; use error_stack::ResultExt; use hyperswitch_domai...
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
full_file
4,906
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AccountNumber { /// Type of account number #[serde(rename = "_type")] pub account_type: AccountType, /// Currency of the account (Mandatory for debtor, Optional for creditor) #[serde(skip_serializing_if = "Option::is_none")] pub currency: Option<api_models::enums::Currency>, /// A...
crates/hyperswitch_connectors/src/connectors/nordea/requests.rs
hyperswitch_connectors
struct_definition
85
rust
AccountNumber
null
null
null
null
null
null
null
null
null
null
null
pub struct IdealData { ideal: IdealDetails, #[serde(rename = "type")] payment_method_type: AirwallexPaymentType, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
IdealData
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_with_attempt_id( self, conn: &PgPooledConn, fraud_check: FraudCheckUpdate, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, _, >( ...
crates/diesel_models/src/query/fraud_check.rs
diesel_models
function_signature
166
rust
null
null
null
null
update_with_attempt_id
null
null
null
null
null
null
null
pub async fn connector_selection<F, D>( state: &SessionState, merchant_context: &domain::MerchantContext, business_profile: &domain::Profile, payment_data: &mut D, request_straight_through: Option<serde_json::Value>, eligible_connectors: Option<Vec<enums::RoutableConnectors>>, mandate_type: ...
crates/router/src/core/payments.rs
router
function_signature
498
rust
null
null
null
null
connector_selection
null
null
null
null
null
null
null
pub async fn signout_external_token( state: SessionState, json_payload: external_service_auth_api::ExternalSignoutTokenRequest, ) -> RouterResponse<()> { let token = authentication::decode_jwt::<ExternalToken>(&json_payload.token.expose(), &state) .await .change_context(errors::ApiErrorRespo...
crates/router/src/core/external_service_auth.rs
router
function_signature
119
rust
null
null
null
null
signout_external_token
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Archipel {}
crates/hyperswitch_connectors/src/connectors/archipel.rs
hyperswitch_connectors
impl_block
9
rust
null
Archipel
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Archipel
null
null
null
null
null
null
null
null
pub async fn construct_payment_router_data_for_setup_mandate<'a>( state: &'a SessionState, payment_data: hyperswitch_domain_models::payments::PaymentConfirmData<api::SetupMandate>, connector_id: &str, merchant_context: &domain::MerchantContext, customer: &'a Option<domain::Customer>, merchant_co...
crates/router/src/core/payments/transformers.rs
router
function_signature
1,746
rust
null
null
null
null
construct_payment_router_data_for_setup_mandate
null
null
null
null
null
null
null
pub struct VoltRefundWebhookObjectResource { pub refund: String, pub external_reference: Option<String>, pub status: VoltWebhookRefundsStatus, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
VoltRefundWebhookObjectResource
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeSyncData { pub dispute_id: String, pub connector_dispute_id: String, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
24
rust
DisputeSyncData
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/fp_utils.rs Public functions: 1 //! Functional programming utilities /// The Applicative trait provides a pure behavior, /// which can be used to create values of type f a from values of type a. pub trait Applicative<R> { /// The Associative type acts as a (f a) wrapper for Self. ...
crates/common_utils/src/fp_utils.rs
common_utils
full_file
296
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct WalletTokenData { pub payment_method_id: String, }
crates/router/src/types/storage/payment_method.rs
router
struct_definition
15
rust
WalletTokenData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Custombilling {}
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
9
rust
null
Custombilling
api::PaymentVoid for
impl api::PaymentVoid for for Custombilling
null
null
null
null
null
null
null
null
pub(super) async fn retrieve_payment_token_data( state: &SessionState, token: String, payment_method: Option<&storage_enums::PaymentMethod>, ) -> errors::RouterResult<storage::PaymentTokenData> { let redis_conn = state .store .get_redis_conn() .change_context(errors::ApiErrorResp...
crates/router/src/core/payment_methods/utils.rs
router
function_signature
282
rust
null
null
null
null
retrieve_payment_token_data
null
null
null
null
null
null
null
pub struct HelcimVerifyRequest { currency: enums::Currency, ip_address: Secret<String, IpAddress>, card_data: HelcimCard, billing_address: HelcimBillingAddress, #[serde(skip_serializing_if = "Option::is_none")] ecommerce: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
65
rust
HelcimVerifyRequest
null
null
null
null
null
null
null
null
null
null
null
impl BillingConnectorPaymentsSyncResponseData { async fn handle_billing_connector_payment_sync_call( state: &SessionState, merchant_context: &domain::MerchantContext, merchant_connector_account: &hyperswitch_domain_models::merchant_connector_account::MerchantConnectorAccount, connect...
crates/router/src/core/webhooks/recovery_incoming.rs
router
impl_block
736
rust
null
BillingConnectorPaymentsSyncResponseData
null
impl BillingConnectorPaymentsSyncResponseData
null
null
null
null
null
null
null
null
impl api::RefundExecute for Itaubank {}
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
11
rust
null
Itaubank
api::RefundExecute for
impl api::RefundExecute for for Itaubank
null
null
null
null
null
null
null
null
pub fn add_connector_mandate_details_in_payment_method( payment_method_type: Option<storage_enums::PaymentMethodType>, authorized_amount: Option<i64>, authorized_currency: Option<storage_enums::Currency>, merchant_connector_id: Option<id_type::MerchantConnectorAccountId>, connector_mandate_id: Optio...
crates/router/src/core/payments/tokenization.rs
router
function_signature
275
rust
null
null
null
null
add_connector_mandate_details_in_payment_method
null
null
null
null
null
null
null
impl api::Payment for UnifiedAuthenticationService {}
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
9
rust
null
UnifiedAuthenticationService
api::Payment for
impl api::Payment for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
pub struct SquareErrorResponse { pub errors: Vec<SquareErrorDetails>, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
SquareErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDsDecisionRule;
crates/router/src/routes/app.rs
router
struct_definition
7
rust
ThreeDsDecisionRule
null
null
null
null
null
null
null
null
null
null
null
pub struct SignifydPaymentsRecordReturnRequest { order_id: String, return_id: String, refund_transaction_id: Option<String>, refund: SignifydRefund, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
40
rust
SignifydPaymentsRecordReturnRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Jpmorgan {}
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
10
rust
null
Jpmorgan
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Jpmorgan
null
null
null
null
null
null
null
null
File: crates/payment_methods/src/core/migration.rs Public functions: 9 Public structs: 3 use actix_multipart::form::{self, bytes, text}; use api_models::payment_methods as pm_api; use csv::Reader; use error_stack::ResultExt; #[cfg(feature = "v1")] use hyperswitch_domain_models::{api, merchant_context}; use masking::...
crates/payment_methods/src/core/migration.rs
payment_methods
full_file
2,336
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_disputes_filters(state: web::Data<AppState>, req: HttpRequest) -> HttpResponse { let flow = Flow::DisputesFilters; Box::pin(api::server_wrap( flow, state, &req, (), |state, auth: auth::AuthenticationData, _, _| { let merchant_context = domain:...
crates/router/src/routes/disputes.rs
router
function_signature
195
rust
null
null
null
null
get_disputes_filters
null
null
null
null
null
null
null
pub trait IncomingWebhook: ConnectorCommon + Sync { /// fn get_webhook_body_decoding_algorithm fn get_webhook_body_decoding_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::DecodeMessage + Send>, errors::ConnectorError> { Ok(Box::new(c...
crates/hyperswitch_interfaces/src/webhooks.rs
hyperswitch_interfaces
trait_definition
2,076
rust
null
null
IncomingWebhook
null
null
null
null
null
null
null
null
null
pub struct AirwallexIntentRequest { // Unique ID to be sent for each transaction/operation request to the connector request_id: String, amount: StringMajorUnit, currency: enums::Currency, //ID created in merchant's order system that corresponds to this PaymentIntent. merchant_order_id: String, ...
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
105
rust
AirwallexIntentRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn sync_onboarding_status( state: SessionState, user_from_token: auth::UserFromToken, request: api::OnboardingSyncRequest, _req_state: ReqState, ) -> RouterResponse<api::OnboardingStatus> { utils::check_if_connector_exists(&state, &request.connector_id, &user_from_token.merchant_id) ...
crates/router/src/core/connector_onboarding.rs
router
function_signature
449
rust
null
null
null
null
sync_onboarding_status
null
null
null
null
null
null
null
pub fn get_month(&self) -> &CardExpirationMonth { &self.month }
crates/cards/src/lib.rs
cards
function_signature
20
rust
null
null
null
null
get_month
null
null
null
null
null
null
null
pub struct MerchantAccountCreate { pub merchant_name: Secret<common_utils::new_type::MerchantName>, pub merchant_details: Option<MerchantDetails>, pub metadata: Option<pii::SecretSerdeValue>, pub organization_id: id_type::OrganizationId, /// Product Type of this merchant account #[schema(value_t...
crates/api_models/src/admin.rs
api_models
struct_definition
94
rust
MerchantAccountCreate
null
null
null
null
null
null
null
null
null
null
null
- **samsung_pay:** Collect customer address details form Samsung Pay based on business profile config and connector required fields ([#7320](https://github.com/juspay/hyperswitch/pull/7320)) ([`c14519e`](https://github.com/juspay/hyperswitch/commit/c14519ebd958abc79879244f8180686b2be30d31)) ### Bug Fixes - **connecto...
CHANGELOG.md#chunk13
null
doc_chunk
8,191
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodId { payment_method_source: PaymentMethodSource, payment_method_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
PaymentMethodId
null
null
null
null
null
null
null
null
null
null
null
pub struct TriggeredAttemptsAccumulator { pub count: Option<i64>, }
crates/analytics/src/frm/accumulator.rs
analytics
struct_definition
19
rust
TriggeredAttemptsAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub fn server(config: routes::AppState) -> Scope { web::scope("/refunds") .app_data(web::Data::new(config)) .service(web::resource("").route(web::post().to(refund_create))) .service( web::resource("/sync").route(web::post().to(refund_retrieve_with_gateway_cred...
crates/router/src/compatibility/stripe/app.rs
router
function_signature
117
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct CreditCardResponseInfo { pub id: String, pub status: Option<String>, pub document_type: String, pub document_number: Secret<String>, pub birthdate: Option<String>, pub phone_country_code: Option<String>, pub phone_area_code: Option<String>, pub phone_number: Option<Secret<Stri...
crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
hyperswitch_connectors
struct_definition
80
rust
CreditCardResponseInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct DeliverySpecifications { special_restrictions: Vec<String>, address_restrictions: AddressRestrictions, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
DeliverySpecifications
null
null
null
null
null
null
null
null
null
null
null