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 BillingConnectorAdditionalCardInfo { /// Card Network pub card_network: Option<common_enums::enums::CardNetwork>, /// Card Issuer pub card_issuer: Option<String>, }
crates/diesel_models/src/types.rs
diesel_models
struct_definition
45
rust
BillingConnectorAdditionalCardInfo
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Silverflow { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&SILVERFLOW_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*SILVERFLOW_SUPPORTED_PAYMENT_METHODS) } fn...
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
111
rust
null
Silverflow
ConnectorSpecifications for
impl ConnectorSpecifications for for Silverflow
null
null
null
null
null
null
null
null
impl<'a> KafkaRefundEvent<'a> { pub fn from_storage(refund: &'a Refund) -> Self { let Refund { payment_id, merchant_id, connector_transaction_id, connector, connector_refund_id, external_reference_id, refund_type, ...
crates/router/src/services/kafka/refund_event.rs
router
impl_block
451
rust
null
KafkaRefundEvent
null
impl KafkaRefundEvent
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RequestPaymentMethodTypes { "type": "object", "required": [ "payment_method_type" ], "properties": { "payment_method_type": { "$ref": "#/components/schemas/PaymentMethodType" }, "payment_experience": { "allOf": [ { "$ref": "#/c...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
409
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RequestPaymentMethodTypes" ]
null
null
null
null
pub struct ChargebackDocumentUploadResponse { #[serde(rename = "@xmlns")] pub xmlns: String, pub merchant_id: String, pub case_id: String, pub document_id: Option<String>, pub response_code: WorldpayvantivFileUploadResponseCode, pub response_message: String, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
66
rust
ChargebackDocumentUploadResponse
null
null
null
null
null
null
null
null
null
null
null
impl ThemeNew { pub fn new( theme_id: String, theme_name: String, lineage: ThemeLineage, email_config: EmailThemeConfig, ) -> Self { let now = date_time::now(); Self { theme_id, theme_name, tenant_id: lineage.tenant_id().to_own...
crates/diesel_models/src/user/theme.rs
diesel_models
impl_block
187
rust
null
ThemeNew
null
impl ThemeNew
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.NextActionData { "oneOf": [ { "type": "object", "description": "Contains the url for redirection flow", "required": [ "redirect_to_url", "type" ], "properties": { "redirect_to_url": { "type": "string" },...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,429
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "NextActionData" ]
null
null
null
null
/// Validate the amount to capture that is sent in the request pub fn validate_amount_to_capture( &self, request_amount_to_capture: MinorUnit, ) -> Result<(), ValidationError> { common_utils::fp_utils::when(request_amount_to_capture > self.get_net_amount(), || { Err(Validatio...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
87
rust
null
null
null
null
validate_amount_to_capture
null
null
null
null
null
null
null
pub struct MpgsCard { number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvc: Secret<String>, complete: bool, }
crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
MpgsCard
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Worldpay {}
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpay
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Worldpay
null
null
null
null
null
null
null
null
impl super::frm::metrics::FrmMetricAnalytics for SqlxClient {}
crates/analytics/src/sqlx.rs
analytics
impl_block
16
rust
null
SqlxClient
super::frm::metrics::FrmMetricAnalytics for
impl super::frm::metrics::FrmMetricAnalytics for for SqlxClient
null
null
null
null
null
null
null
null
impl ConnectorCommon for ConnectorEnum { fn id(&self) -> &'static str { match self { Self::Old(connector) => connector.id(), Self::New(connector) => connector.id(), } } fn get_currency_unit(&self) -> CurrencyUnit { match self { Self::Old(connector...
crates/hyperswitch_interfaces/src/connector_integration_interface.rs
hyperswitch_interfaces
impl_block
364
rust
null
ConnectorEnum
ConnectorCommon for
impl ConnectorCommon for for ConnectorEnum
null
null
null
null
null
null
null
null
pub fn spawn_metrics_collector(metrics_collection_interval_in_secs: Option<u16>) { let metrics_collection_interval = metrics_collection_interval_in_secs .unwrap_or(DEFAULT_BG_METRICS_COLLECTION_INTERVAL_IN_SECS); let cache_instances = [ &cache::CONFIG_CACHE, &cache::ACCOUNTS_CACHE, ...
crates/router/src/routes/metrics/bg_metrics_collector.rs
router
function_signature
213
rust
null
null
null
null
spawn_metrics_collector
null
null
null
null
null
null
null
impl Responder { use hyperswitch_domain_models::payments::PaymentConfirmData; let flow = Flow::ProxyConfirmIntent; // Extract the payment ID from the path let global_payment_id = path.into_inner(); tracing::Span::current().record("payment_id", global_payment_id.get_string_repr()); // Parse an...
crates/router/src/routes/payments.rs
router
impl_block
433
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl VaultData { pub fn get_card_vault_data(&self) -> Option<payment_method_data::Card> { match self { Self::Card(card_data) => Some(card_data.clone()), Self::NetworkToken(_network_token_data) => None, Self::CardAndNetworkToken(vault_data) => Some(vault_data.card_data.clo...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
impl_block
158
rust
null
VaultData
null
impl VaultData
null
null
null
null
null
null
null
null
pub struct NoonSubscriptionData { #[serde(rename = "type")] subscription_type: NoonSubscriptionType, //Short description about the subscription. name: String, max_amount: StringMajorUnit, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
NoonSubscriptionData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankDebitData { "oneOf": [ { "type": "object", "required": [ "ach_bank_debit" ], "properties": { "ach_bank_debit": { "type": "object", "description": "Payment Method data for Ach bank debit", "required": [...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,084
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankDebitData" ]
null
null
null
null
pub fn get_api_key(headers: &HeaderMap) -> RouterResult<&str> { get_header_value_by_key("api-key".into(), headers)?.get_required_value("api_key") }
crates/router/src/services/authentication.rs
router
function_signature
40
rust
null
null
null
null
get_api_key
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/square.rs Public structs: 1 pub mod transformers; use std::fmt::Debug; use api_models::{ enums, webhooks::{IncomingWebhookEvent, ObjectReferenceId}, }; use base64::Engine; use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, reque...
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
full_file
7,186
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn construct_pre_authentication_router_data<F: Clone>( state: &SessionState, authentication_connector: String, card: hyperswitch_domain_models::payment_method_data::Card, merchant_connector_account: &payments_helpers::MerchantConnectorAccountType, merchant_id: common_utils::id_type::MerchantId, ...
crates/router/src/core/authentication/transformers.rs
router
function_signature
183
rust
null
null
null
null
construct_pre_authentication_router_data
null
null
null
null
null
null
null
### Documentation - Add architecture and monitoring diagram of hyperswitch ([#1825](https://github.com/juspay/hyperswitch/pull/1825)) ([`125ef2b`](https://github.com/juspay/hyperswitch/commit/125ef2b4f82c922209bcfe161ce4790fe2ee3a86)) ### Miscellaneous Tasks - **configs:** Add `payout_connector_list` config to toml ...
CHANGELOG.md#chunk54
null
doc_chunk
8,136
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
9
rust
null
Klarna
api::PaymentSync for
impl api::PaymentSync for for Klarna
null
null
null
null
null
null
null
null
pub struct Prophetpay;
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
struct_definition
5
rust
Prophetpay
null
null
null
null
null
null
null
null
null
null
null
pub fn get_all_connectors() -> JsResult { Ok(serde_wasm_bindgen::to_value(RoutableConnectors::VARIANTS)?) }
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
34
rust
null
null
null
null
get_all_connectors
null
null
null
null
null
null
null
/// Verifies that the [`HashiCorpVault`] configuration is usable. pub fn validate(&self) -> Result<(), &'static str> { when(self.url.is_default_or_empty(), || { Err("HashiCorp vault url must not be empty") })?; when(self.token.is_default_or_empty(), || { Err("HashiCo...
crates/external_services/src/hashicorp_vault/core.rs
external_services
function_signature
85
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct CloneConnectorSource { pub mca_id: id_type::MerchantConnectorAccountId, pub merchant_id: id_type::MerchantId, }
crates/api_models/src/user.rs
api_models
struct_definition
31
rust
CloneConnectorSource
null
null
null
null
null
null
null
null
null
null
null
impl RedisResult { /// fn try_into_get(&self)-> Result<i32, RedisError> { /// match self { /// Self::Get(a) => Ok(a), /// _=>Err(RedisError::UnknownResult) /// } /// } /// /// fn try_into_set(&self)-> Result<String, RedisError> { /// match self { /// ...
crates/router_derive/src/lib.rs
router_derive
impl_block
109
rust
null
RedisResult
null
impl RedisResult
null
null
null
null
null
null
null
null
pub async fn update_merchant_account() {}
crates/openapi/src/routes/merchant_account.rs
openapi
function_signature
9
rust
null
null
null
null
update_merchant_account
null
null
null
null
null
null
null
pub struct JpmorganPaymentsRequest { capture_method: CapMethod, amount: MinorUnit, currency: common_enums::Currency, merchant: JpmorganMerchant, payment_method_type: JpmorganPaymentMethodType, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
JpmorganPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Boku {}
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
9
rust
null
Boku
api::PaymentSync for
impl api::PaymentSync for for Boku
null
null
null
null
null
null
null
null
pub fn from_hashmap( hashmap: HashMap<String, String>, ) -> errors::CustomResult<Self, errors::ParsingError> { let iter = MapDeserializer::< '_, std::collections::hash_map::IntoIter<String, String>, serde_json::error::Error, >::new(hashmap.into_iter()); ...
crates/drainer/src/types.rs
drainer
function_signature
94
rust
null
null
null
null
from_hashmap
null
null
null
null
null
null
null
/// This struct represents the encrypted Gpay payment data pub struct GpayEcryptedTokenizationData { /// The type of the token #[serde(rename = "type")] pub token_type: String, /// Token generated for the wallet pub token: String, }
crates/common_types/src/payments.rs
common_types
struct_definition
59
rust
GpayEcryptedTokenizationData
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdateSuccessRateWindowEventRequest { pub id: String, pub params: String, pub labels_with_status: Vec<UpdateLabelWithStatusEventRequest>, pub config: Option<UpdateSuccessRateWindowConfig>, pub global_labels_with_status: Vec<UpdateLabelWithStatusEventRequest>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
65
rust
UpdateSuccessRateWindowEventRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateResponse { id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
MandateResponse
null
null
null
null
null
null
null
null
null
null
null
impl PaymentAuthorize for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
7
rust
null
Riskified
PaymentAuthorize for
impl PaymentAuthorize for for Riskified
null
null
null
null
null
null
null
null
pub struct PaypalWebhooksPurchaseUnits { pub reference_id: String, pub amount: OrderAmount, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
PaypalWebhooksPurchaseUnits
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: tags [ { "name": "Merchant Account", "description": "Create and manage merchant accounts" }, { "name": "Profile", "description": "Create and manage profiles" }, { "name": "Merchant Connector Account", "description": "Create and manage merchant connector accounts" ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
348
.json
null
null
null
null
null
openapi_spec
tags
[]
null
null
null
null
OpenAPI Block Path: components.schemas.AmazonPaySessionTokenData { "type": "object", "required": [ "amazon_pay" ], "properties": { "amazon_pay": { "$ref": "#/components/schemas/AmazonPayMerchantCredentials" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
67
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmazonPaySessionTokenData" ]
null
null
null
null
pub async fn get_payment_link_status( _state: SessionState, _merchant_context: domain::MerchantContext, _merchant_id: common_utils::id_type::MerchantId, _payment_id: common_utils::id_type::PaymentId, ) -> RouterResponse<services::PaymentLinkFormData> { todo!() }
crates/router/src/core/payment_link.rs
router
function_signature
70
rust
null
null
null
null
get_payment_link_status
null
null
null
null
null
null
null
impl api::PaymentCapture for Chargebee {}
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
9
rust
null
Chargebee
api::PaymentCapture for
impl api::PaymentCapture for for Chargebee
null
null
null
null
null
null
null
null
pub async fn create_domain_model_using_record_request( payment_intent: &super::PaymentIntent, cell_id: id_type::CellId, storage_scheme: storage_enums::MerchantStorageScheme, request: &api_models::payments::PaymentsAttemptRecordRequest, encrypted_data: DecryptedPaymentAttempt, ...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
949
rust
null
null
null
null
create_domain_model_using_record_request
null
null
null
null
null
null
null
pub fn build_paypal_get_request(url: String, access_token: String) -> RouterResult<Request> { Ok(RequestBuilder::new() .method(Method::Get) .url(&url) .attach_default_headers() .header( header::AUTHORIZATION.to_string().as_str(), format!("Bearer {access_token}...
crates/router/src/utils/connector_onboarding/paypal.rs
router
function_signature
83
rust
null
null
null
null
build_paypal_get_request
null
null
null
null
null
null
null
impl Rapyd { pub fn generate_signature( &self, auth: &rapyd::RapydAuthType, http_method: &str, url_path: &str, body: &str, timestamp: i64, salt: &str, ) -> CustomResult<String, errors::ConnectorError> { let rapyd::RapydAuthType { access...
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
209
rust
null
Rapyd
null
impl Rapyd
null
null
null
null
null
null
null
null
impl ConnectorValidation for Tokenio { //TODO: implement functions when support enabled }
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
18
rust
null
Tokenio
ConnectorValidation for
impl ConnectorValidation for for Tokenio
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct NonThreeDSResponseData { #[serde(rename = "tranID")] pub tran_id: String, pub status: String, #[serde(rename = "extraP")] pub extra_parameters: Option<ExtraParameters>, pub error_code: Option<String>, pub error_desc: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
66
rust
NonThreeDSResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutsNew { pub payout_id: id_type::PayoutId, pub merchant_id: id_type::MerchantId, pub customer_id: Option<id_type::CustomerId>, pub address_id: Option<String>, pub payout_type: Option<storage_enums::PayoutType>, pub payout_method_id: Option<String>, pub amount: MinorUnit, p...
crates/hyperswitch_domain_models/src/payouts/payouts.rs
hyperswitch_domain_models
struct_definition
247
rust
PayoutsNew
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--update.mdx # Type: Doc File --- openapi: post /payments/{payment_id} ---
api-reference/v1/payments/payments--update.mdx
null
doc_file
33
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/scheduler/src/consumer/types/batch.rs Public functions: 2 Public structs: 1 use std::collections::HashMap; use common_utils::{errors::CustomResult, ext_traits::OptionExt}; use diesel_models::process_tracker::ProcessTracker; use error_stack::ResultExt; use time::PrimitiveDateTime; use crate::errors; #...
crates/scheduler/src/consumer/types/batch.rs
scheduler
full_file
895
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &id_type::CustomerId { &self.customer_id }
crates/hyperswitch_domain_models/src/customer.rs
hyperswitch_domain_models
function_signature
22
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
#[serde(deny_unknown_fields)] pub struct PayoutListConstraints { /// The identifier for customer #[schema(value_type = Option<String>, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")] pub customer_id: Option<id_type::CustomerId>, /// A cursor for use in pagination, fetch the next list after some object ...
crates/api_models/src/payouts.rs#chunk1
api_models
chunk
2,552
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsMandateReference( pub HashMap<id_type::MerchantConnectorAccountId, PaymentsMandateReferenceRecord>, );
crates/api_models/src/payment_methods.rs
api_models
struct_definition
27
rust
PaymentsMandateReference
null
null
null
null
null
null
null
null
null
null
null
pub fn new( payment_intent: &revenue_recovery::RecoveryPaymentIntent, payment_attempt: &revenue_recovery::RecoveryPaymentAttempt, ) -> Self { Self(payment_intent.clone(), payment_attempt.clone()) }
crates/router/src/core/webhooks/recovery_incoming.rs
router
function_signature
49
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn from_storage(dispute: &'a Dispute) -> Self { let currency = dispute.dispute_currency.unwrap_or( dispute .currency .to_uppercase() .parse_enum("Currency") .unwrap_or_default(), ); Self { dispute_id: &di...
crates/router/src/services/kafka/dispute_event.rs
router
function_signature
370
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
impl api::RefundSync for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
10
rust
null
Zsl
api::RefundSync for
impl api::RefundSync for for Zsl
null
null
null
null
null
null
null
null
pub fn validate_refund_list(limit: Option<i64>) -> CustomResult<i64, errors::ApiErrorResponse> { match limit { Some(limit_val) => { if !(LOWER_LIMIT..=UPPER_LIMIT).contains(&limit_val) { Err(errors::ApiErrorResponse::InvalidRequestData { message: "limit should...
crates/router/src/core/utils/refunds_validator.rs
router
function_signature
114
rust
null
null
null
null
validate_refund_list
null
null
null
null
null
null
null
impl UnifiedAuthenticationService for ExternalAuthentication { fn get_pre_authentication_request_data( payment_method_data: Option<&domain::PaymentMethodData>, _service_details: Option<payments::CtpServiceDetails>, amount: common_utils::types::MinorUnit, currency: Option<common_enums...
crates/router/src/core/unified_authentication_service.rs
router
impl_block
1,827
rust
null
ExternalAuthentication
UnifiedAuthenticationService for
impl UnifiedAuthenticationService for for ExternalAuthentication
null
null
null
null
null
null
null
null
impl api::PaymentToken for Trustpay {}
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Trustpay
api::PaymentToken for
impl api::PaymentToken for for Trustpay
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
11
rust
null
HyperswitchVault
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for HyperswitchVault
null
null
null
null
null
null
null
null
pub async fn vault_payment_method( state: &SessionState, pmd: &domain::PaymentMethodVaultingData, merchant_context: &domain::MerchantContext, profile: &domain::Profile, existing_vault_id: Option<domain::VaultId>, customer_id: &id_type::GlobalCustomerId, ) -> RouterResult<( pm_types::AddVault...
crates/router/src/core/payment_methods.rs
router
function_signature
377
rust
null
null
null
null
vault_payment_method
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/user/theme.rs Public functions: 8 use async_bb8_diesel::AsyncRunQueryDsl; use common_utils::types::user::ThemeLineage; use diesel::{ associations::HasTable, debug_query, pg::Pg, result::Error as DieselError, sql_types::{Bool, Nullable}, BoolExpressionMethod...
crates/diesel_models/src/query/user/theme.rs
diesel_models
full_file
1,724
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct XenditSplitRequest { pub name: String, pub description: String, pub routes: Vec<XenditSplitRoute>, }
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
XenditSplitRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/webhooks/utils.rs Public functions: 5 use std::marker::PhantomData; use common_utils::{errors::CustomResult, ext_traits::ValueExt}; use error_stack::{Report, ResultExt}; use redis_interface as redis; use router_env::tracing; use super::MERCHANT_ID; use crate::{ core::{ error...
crates/router/src/core/webhooks/utils.rs
router
full_file
2,426
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FinalizeStatusDetails { state: FinalizeState, reason_code: Option<String>, reason_description: Option<String>, last_updated_timestamp: String, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
FinalizeStatusDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/chargebee.rs Public functions: 1 Public structs: 1 pub mod transformers; use base64::Engine; use common_enums::enums; use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, R...
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
full_file
6,459
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/disputes/metrics.rs Public structs: 1 mod dispute_status_metric; mod sessionized_metrics; mod total_amount_disputed; mod total_dispute_lost_amount; use std::collections::HashSet; use api_models::analytics::{ disputes::{DisputeDimensions, DisputeFilters, DisputeMetrics, DisputeMetricsB...
crates/analytics/src/disputes/metrics.rs
analytics
full_file
951
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn accept_dispute( state: SessionState, merchant_context: domain::MerchantContext, profile_id: Option<common_utils::id_type::ProfileId>, req: disputes::DisputeId, ) -> RouterResponse<dispute_models::DisputeResponse> { let db = &state.store; let dispute = state .store .f...
crates/router/src/core/disputes.rs
router
function_signature
846
rust
null
null
null
null
accept_dispute
null
null
null
null
null
null
null
pub async fn list_countries_currencies_for_connector_payment_method_util( connector_filters: settings::ConnectorFilters, connector: api_enums::Connector, payment_method_type: api_enums::PaymentMethodType, ) -> ListCountriesCurrenciesResponse { let payment_method_type = settings::PaymentMethodFil...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
307
rust
null
null
null
null
list_countries_currencies_for_connector_payment_method_util
null
null
null
null
null
null
null
impl crate::events::ApiEventMetric for GlobalTokenId { fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> { Some(crate::events::ApiEventsType::Token { token_id: Some(self.clone()), }) } }
crates/common_utils/src/id_type/global_id/token.rs
common_utils
impl_block
59
rust
null
GlobalTokenId
crate::events::ApiEventMetric for
impl crate::events::ApiEventMetric for for GlobalTokenId
null
null
null
null
null
null
null
null
File: crates/router/src/core/payment_methods/tokenize/card_executor.rs Public functions: 15 Public structs: 8 use std::str::FromStr; use ::payment_methods::{controller::PaymentMethodsController, core::migration}; use api_models::{enums as api_enums, payment_methods as payment_methods_api}; use common_utils::{ c...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
full_file
4,693
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ThunesPaymentsRequest { amount: StringMinorUnit, card: ThunesCard, }
crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
ThunesPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmazonPayDeliveryOptions { "type": "object", "required": [ "id", "price", "shipping_method", "is_default" ], "properties": { "id": { "type": "string", "description": "Delivery Option identifier" }, "price": { "$ref": "#/compone...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
153
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmazonPayDeliveryOptions" ]
null
null
null
null
impl api::Payment for Authipay {}
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
8
rust
null
Authipay
api::Payment for
impl api::Payment for for Authipay
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/routing_algorithm.rs pub use diesel_models::routing_algorithm::{ RoutingAlgorithm, RoutingAlgorithmMetadata, RoutingProfileMetadata, };
crates/router/src/types/storage/routing_algorithm.rs
router
full_file
33
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentResponse;
crates/router/src/core/payments/operations/payment_response.rs
router
struct_definition
5
rust
PaymentResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/refunds.rs Public functions: 2 Public structs: 19 use std::collections::HashMap; pub use common_utils::types::MinorUnit; use common_utils::{pii, types::TimeRange}; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; use utoipa::ToSchema; use super::payments::AmountFilter; ...
crates/api_models/src/refunds.rs
api_models
full_file
5,320
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ClickhouseConfig { username: String, password: Option<String>, host: String, }
crates/analytics/src/clickhouse.rs
analytics
struct_definition
23
rust
ClickhouseConfig
null
null
null
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), String> { if let Some(payment_statuses) = &self.payment_statuses_enabled { Self::validate_statuses(payment_statuses, "payment")?; } if let Some(refund_statuses) = &self.refund_statuses_enabled { Self::validate_statuses(refund_statuses...
crates/api_models/src/admin.rs
api_models
function_signature
122
rust
null
null
null
null
validate
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs Public structs: 34 use std::collections::HashMap; use cards::CardNumber; use common_enums::{enums, PaymentMethod}; use common_utils::{ext_traits::ValueExt, pii::Email, types::MinorUnit}; use error_stack::ResultExt; use hyperswitch_domain...
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Create a new merchant_id from unix timestamp, of the format `merchant_{timestamp}` pub fn new_from_unix_timestamp() -> Self { let merchant_id = format!("merchant_{}", date_time::now_unix_timestamp()); let alphanumeric_id = AlphaNumericId::new_unchecked(merchant_id); let length_id = Leng...
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
84
rust
null
null
null
null
new_from_unix_timestamp
null
null
null
null
null
null
null
pub struct Cashtocode { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
struct_definition
28
rust
Cashtocode
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonRefundResponseResult { transaction: NoonPaymentsTransactionResponse, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
NoonRefundResponseResult
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Payment Operations | Hyperswitch # Type: Web Doc Hyperswitch Control Center streamlines the complexities of managing payments, ensuring operational efficiency and control over every aspect of payment flow. From account management to real-time analytics, Hyperswitch empowers businesses with the tools...
https://docs.hyperswitch.io/explore-hyperswitch/account-management
null
web_doc_file
140
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/account-management
Payment Operations | Hyperswitch
null
pub struct Fraud { pub outcome: FraudOutcome, pub score: f32, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
20
rust
Fraud
null
null
null
null
null
null
null
null
null
null
null
pub fn track_response_status_code<Q>(response: &ApplicationResponse<Q>) -> i64 { match response { ApplicationResponse::Json(_) | ApplicationResponse::StatusOk | ApplicationResponse::TextPlain(_) | ApplicationResponse::Form(_) | ApplicationResponse::GenericLinkForm(_) ...
crates/router/src/routes/metrics/request.rs
router
function_signature
118
rust
null
null
null
null
track_response_status_code
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/refunds_v2.rs //! Refunds V2 interface use hyperswitch_domain_models::{ router_data_v2::flow_common_types::RefundFlowData, router_flow_types::refunds::{Execute, RSync}, router_request_types::RefundsData, router_response_types::RefundsResponseData, }; use cr...
crates/hyperswitch_interfaces/src/api/refunds_v2.rs
hyperswitch_interfaces
full_file
200
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobepayPaymentsRequest { price: MinorUnit, description: String, currency: enums::Currency, channel: GlobepayChannel, }
crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
GlobepayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
8
rust
null
Checkout
api::PaymentToken for
impl api::PaymentToken for for Checkout
null
null
null
null
null
null
null
null
pub struct SaleQuery { sale_status: SaleStatus, sale_payme_id: String, sale_error_text: Option<String>, sale_error_code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
SaleQuery
null
null
null
null
null
null
null
null
null
null
null
pub struct BluecodeRouterData<T> { pub amount: FloatMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
BluecodeRouterData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_optional_email(&self) -> Option<pii::Email> { Some(self.email.clone()) }
crates/api_models/src/customers.rs
api_models
function_signature
24
rust
null
null
null
null
get_optional_email
null
null
null
null
null
null
null
pub fn get_merchant_reference_id(&self) -> id_type::MerchantId { id_type::MerchantId::from_merchant_name(self.merchant_name.clone().expose()) }
crates/api_models/src/admin.rs
api_models
function_signature
39
rust
null
null
null
null
get_merchant_reference_id
null
null
null
null
null
null
null
impl Rapyd { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, amount_converter_webhooks: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
48
rust
null
Rapyd
null
impl Rapyd
null
null
null
null
null
null
null
null
pub fn method(mut self, method: Method) -> Self { self.method = method; self }
crates/common_utils/src/request.rs
common_utils
function_signature
24
rust
null
null
null
null
method
null
null
null
null
null
null
null
impl api::PaymentVoid for Blackhawknetwork {}
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
10
rust
null
Blackhawknetwork
api::PaymentVoid for
impl api::PaymentVoid for for Blackhawknetwork
null
null
null
null
null
null
null
null
pub async fn list_profiles_for_user_in_org_and_merchant_account( state: SessionState, user_from_token: auth::UserFromToken, ) -> UserResponse<Vec<user_api::ListProfilesForUserInOrgAndMerchantAccountResponse>> { let role_info = roles::RoleInfo::from_role_id_org_id_tenant_id( &state, &user_fro...
crates/router/src/core/user.rs
router
function_signature
618
rust
null
null
null
null
list_profiles_for_user_in_org_and_merchant_account
null
null
null
null
null
null
null
impl api::MandateSetup for Moneris {}
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
impl_block
12
rust
null
Moneris
api::MandateSetup for
impl api::MandateSetup for for Moneris
null
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Nmi {}
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
10
rust
null
Nmi
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Nmi
null
null
null
null
null
null
null
null
pub struct PayPalActionUrlResponse { pub action_url: String, }
crates/api_models/src/connector_onboarding.rs
api_models
struct_definition
15
rust
PayPalActionUrlResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalSourceVerificationRequest { pub transmission_id: String, pub transmission_time: String, pub cert_url: String, pub transmission_sig: String, pub auth_algo: String, pub webhook_id: String, pub webhook_event: serde_json::Value, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
60
rust
PaypalSourceVerificationRequest
null
null
null
null
null
null
null
null
null
null
null