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/tests/connectors/powertranz.rs use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct PowertranzTest; impl ConnectorActions for PowertranzTest {} impl utils::Connector for Power...
crates/router/tests/connectors/powertranz.rs
router
full_file
2,937
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
10
rust
null
Nuvei
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Nuvei
null
null
null
null
null
null
null
null
pub struct TrustpayMandatoryParams { pub billing_city: String, pub billing_country: api_models::enums::CountryAlpha2, pub billing_street1: Secret<String>, pub billing_postcode: Secret<String>, pub billing_first_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
57
rust
TrustpayMandatoryParams
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalRefundWebhooks { pub id: String, pub amount: OrderAmount, pub seller_payable_breakdown: PaypalSellerPayableBreakdown, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
PaypalRefundWebhooks
null
null
null
null
null
null
null
null
null
null
null
pub struct TransactionAuthChargeResponseBody { id: String, status: BraintreePaymentStatus, payment_method: Option<PaymentMethodInfo>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
TransactionAuthChargeResponseBody
null
null
null
null
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for ApplePayCertificatesMigrationRequest {}
crates/api_models/src/apple_pay_certificates_migration.rs
api_models
impl_block
16
rust
null
ApplePayCertificatesMigrationRequest
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for ApplePayCertificatesMigrationRequest
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SepaBankTransferAdditionalData { "type": "object", "description": "Masked payout method details for sepa bank transfer payout method", "required": [ "iban" ], "properties": { "iban": { "type": "string", "description": "Partially masked international b...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
294
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SepaBankTransferAdditionalData" ]
null
null
null
null
impl api::PaymentSession for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
9
rust
null
Payu
api::PaymentSession for
impl api::PaymentSession for for Payu
null
null
null
null
null
null
null
null
pub async fn generic_update_with_results<T, V, P, R>( conn: &PgPooledConn, predicate: P, values: V, ) -> StorageResult<Vec<R>> where T: FilterDsl<P> + HasTable<Table = T> + Table + 'static, V: AsChangeset<Target = <Filter<T, P> as HasTable>::Table> + Debug + 'static, Filter<T, P>: IntoUpdateTarg...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
478
rust
null
null
null
null
generic_update_with_results
null
null
null
null
null
null
null
impl PaymentMetricAccumulator for FailureReasonsDistributionAccumulator { type MetricOutput = (Option<u64>, Option<u64>); fn add_metrics_bucket(&mut self, metrics: &PaymentMetricRow) { if let Some(count) = metrics.count { if let Ok(count_u64) = u64::try_from(count) { self.co...
crates/analytics/src/payments/accumulator.rs
analytics
impl_block
177
rust
null
FailureReasonsDistributionAccumulator
PaymentMetricAccumulator for
impl PaymentMetricAccumulator for for FailureReasonsDistributionAccumulator
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Payme { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::Md5)) } fn get_webhook...
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
1,546
rust
null
Payme
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Payme
null
null
null
null
null
null
null
null
pub struct Gsm;
crates/router/src/routes/app.rs
router
struct_definition
5
rust
Gsm
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
10
rust
null
Klarna
api::RefundExecute for
impl api::RefundExecute for for Klarna
null
null
null
null
null
null
null
null
pub struct SRApiClient;
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
7
rust
SRApiClient
null
null
null
null
null
null
null
null
null
null
null
pub struct AffirmAuthType { pub public_key: Secret<String>, pub private_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
AffirmAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn update( conn: &PgPooledConn, card_iin: String, data: UpdateCardInfo, ) -> StorageResult<Self> { generics::generic_update_with_results::<<Self as HasTable>::Table, UpdateCardInfo, _, _>( conn, dsl::card_iin.eq(card_iin), data, )...
crates/diesel_models/src/query/cards_info.rs
diesel_models
function_signature
126
rust
null
null
null
null
update
null
null
null
null
null
null
null
impl ConnectorValidation for Paysafe { fn validate_psync_reference_id( &self, _data: &PaymentsSyncData, _is_three_ds: bool, _status: enums::AttemptStatus, _connector_meta_data: Option<common_utils::pii::SecretSerdeValue>, ) -> CustomResult<(), errors::ConnectorError> { ...
crates/hyperswitch_connectors/src/connectors/paysafe.rs
hyperswitch_connectors
impl_block
81
rust
null
Paysafe
ConnectorValidation for
impl ConnectorValidation for for Paysafe
null
null
null
null
null
null
null
null
impl Authentication { pub fn server(state: AppState) -> Scope { web::scope("/authentication") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(authentication::authentication_create))) .service( web::resource("/{authenticatio...
crates/router/src/routes/app.rs
router
impl_block
167
rust
null
Authentication
null
impl Authentication
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.WebhookDetails { "type": "object", "required": [ "payment_statuses_enabled", "refund_statuses_enabled" ], "properties": { "webhook_version": { "type": "string", "description": "The version for Webhook", "example": "1.0.2", "nullable": tr...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
638
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WebhookDetails" ]
null
null
null
null
pub async fn list_initial_attempts_by_merchant_id_primary_object_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, primary_object_id: &str, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, ...
crates/diesel_models/src/query/events.rs
diesel_models
function_signature
156
rust
null
null
null
null
list_initial_attempts_by_merchant_id_primary_object_id
null
null
null
null
null
null
null
pub async fn payouts_confirm_core( state: SessionState, merchant_context: domain::MerchantContext, req: payouts::PayoutCreateRequest, ) -> RouterResponse<payouts::PayoutCreateResponse> { let mut payout_data = Box::pin(make_payout_data( &state, &merchant_context, None, &pa...
crates/router/src/core/payouts.rs
router
function_signature
443
rust
null
null
null
null
payouts_confirm_core
null
null
null
null
null
null
null
pub async fn schedule_refund_execution( state: &SessionState, refund: diesel_refund::Refund, refund_type: api_models::refunds::RefundType, merchant_context: &domain::MerchantContext, payment_attempt: &storage::PaymentAttempt, payment_intent: &storage::PaymentIntent, creds_identifier: Option<...
crates/router/src/core/refunds.rs
router
function_signature
101
rust
null
null
null
null
schedule_refund_execution
null
null
null
null
null
null
null
pub fn get_avs_definition(code: &str) -> Option<&'static str> { match code { "0" => Some("AVS Not Available"), "A" => Some("Address match only"), "B" => Some("Address matches, ZIP not verified"), "C" => Some("Incompatible format"), "D" => Some("Exact match"), "F" => S...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
function_signature
439
rust
null
null
null
null
get_avs_definition
null
null
null
null
null
null
null
impl api::MandateSetup for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
10
rust
null
Stripe
api::MandateSetup for
impl api::MandateSetup for for Stripe
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/flows/complete_authorize_flow.rs Public functions: 1 use async_trait::async_trait; use masking::ExposeInterface; use super::{ConstructFlowSpecificData, Feature}; use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self...
crates/router/src/core/payments/flows/complete_authorize_flow.rs
router
full_file
2,454
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct WorldpayWebhookEventType { pub event_id: String, pub event_timestamp: String, pub event_details: EventDetails, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
31
rust
WorldpayWebhookEventType
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobepayAuthType { pub(super) partner_code: Secret<String>, pub(super) credential_code: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
GlobepayAuthType
null
null
null
null
null
null
null
null
null
null
null
pub trait KeyNode: fmt::Debug + Clone + hash::Hash + serde::Serialize + PartialEq + Eq {}
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
trait_definition
23
rust
null
null
KeyNode
null
null
null
null
null
null
null
null
null
pub struct GpaymentsPreAuthenticationResponse { pub auth_url: String, pub mon_url: Option<String>, pub resolved_card_scheme: Option<CardScheme>, #[serde(rename = "threeDSMethodAvailable")] pub three_ds_method_available: Option<bool>, #[serde(rename = "threeDSMethodUrl")] pub three_ds_method_...
crates/hyperswitch_connectors/src/connectors/gpayments/gpayments_types.rs
hyperswitch_connectors
struct_definition
123
rust
GpaymentsPreAuthenticationResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Proxy;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Proxy
null
null
null
null
null
null
null
null
null
null
null
pub struct CardNetworkTokenizeForm { #[multipart(limit = "1MB")] pub file: Bytes, pub merchant_id: Text<id_type::MerchantId>, }
crates/router/src/core/payment_methods/tokenize.rs
router
struct_definition
37
rust
CardNetworkTokenizeForm
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentCreate;
crates/router/src/core/payments/operations/payment_create.rs
router
struct_definition
5
rust
PaymentCreate
null
null
null
null
null
null
null
null
null
null
null
impl Relay { pub async fn update( self, conn: &PgPooledConn, relay: RelayUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, _, >(con...
crates/diesel_models/src/query/relay.rs
diesel_models
impl_block
321
rust
null
Relay
null
impl Relay
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetRoutingEvents; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req, _| async move { utils::check_if_profile_id_is_present_i...
crates/router/src/analytics.rs
router
impl_block
208
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.XenditMultipleSplitRequest { "type": "object", "description": "Fee information to be charged on the payment being collected via xendit", "required": [ "name", "description", "routes" ], "properties": { "name": { "type": "string", "description"...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
244
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "XenditMultipleSplitRequest" ]
null
null
null
null
pub struct BankOfAmericaRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
BankOfAmericaRouterData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Custombilling { fn id(&self) -> &'static str { "custombilling" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor // TODO! Check connector documentation, on which unit they are processing the currency. // If the conne...
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
401
rust
null
Custombilling
ConnectorCommon for
impl ConnectorCommon for for Custombilling
null
null
null
null
null
null
null
null
pub struct Stripe { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), amount_converter_webhooks: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
struct_definition
48
rust
Stripe
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GooglePayPaymentMethodInfo { "type": "object", "required": [ "card_network", "card_details" ], "properties": { "card_network": { "type": "string", "description": "The name of the card network" }, "card_details": { "type": "string", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
142
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GooglePayPaymentMethodInfo" ]
null
null
null
null
impl PollConfig { pub fn get_poll_config_key(connector: String) -> String { format!("poll_config_external_three_ds_{connector}") } }
crates/router/src/types.rs
router
impl_block
33
rust
null
PollConfig
null
impl PollConfig
null
null
null
null
null
null
null
null
impl GenericLinkData { pub fn get_payment_method_collect_data(&self) -> Result<&PaymentMethodCollectLinkData, String> { match self { Self::PaymentMethodCollect(pm) => Ok(pm), _ => Err("Invalid link type for fetching payment method collect data".to_string()), } } pub f...
crates/diesel_models/src/generic_link.rs
diesel_models
impl_block
126
rust
null
GenericLinkData
null
impl GenericLinkData
null
null
null
null
null
null
null
null
pub struct FiservemeaErrorResponse { #[serde(rename = "type")] fiservemea_type: Option<String>, client_request_id: Option<String>, api_trace_id: Option<String>, pub response_type: Option<String>, pub error: Option<FiservemeaError>, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
FiservemeaErrorResponse
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/locker-api-reference/cards/get-or-insert-the-card-fingerprint.mdx # Type: Doc File --- openapi: post /data/fingerprint ---
api-reference/locker-api-reference/cards/get-or-insert-the-card-fingerprint.mdx
null
doc_file
36
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobalpayRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
17
rust
GlobalpayRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct NetworkTokenPaymentMethodDetails { network_token_requestor_reference_id: String, network_token_locker_id: String, network_token_pmd: Encryptable<Secret<serde_json::Value>>, }
crates/router/src/core/payment_methods.rs
router
struct_definition
44
rust
NetworkTokenPaymentMethodDetails
null
null
null
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetRefundMetricRequest` element. pub async fn get_org_refund_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetRefundMetricRequest; 1]>, ) -> impl Responder { #[allow(clippy::expe...
crates/router/src/analytics.rs
router
function_signature
372
rust
null
null
null
null
get_org_refund_metrics
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Silverflow {}
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
9
rust
null
Silverflow
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Silverflow
null
null
null
null
null
null
null
null
pub struct MerchantConnectorId { #[schema(value_type = String)] pub merchant_id: id_type::MerchantId, #[schema(value_type = String)] pub merchant_connector_id: id_type::MerchantConnectorAccountId, }
crates/api_models/src/admin.rs
api_models
struct_definition
47
rust
MerchantConnectorId
null
null
null
null
null
null
null
null
null
null
null
pub struct OutgoingWebhookRetryWorkflow;
crates/router/src/workflows/outgoing_webhook_retry.rs
router
struct_definition
9
rust
OutgoingWebhookRetryWorkflow
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_count_by_customer_id_merchant_id_status( conn: &PgPooledConn, customer_id: &common_utils::id_type::CustomerId, merchant_id: &common_utils::id_type::MerchantId, status: common_enums::PaymentMethodStatus, ) -> StorageResult<i64> { let filter = <Self as HasTable...
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
241
rust
null
null
null
null
get_count_by_customer_id_merchant_id_status
null
null
null
null
null
null
null
pub struct AddressRestrictions { r#type: String, restrictions: HashMap<String, Restriction>, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
AddressRestrictions
null
null
null
null
null
null
null
null
null
null
null
pub struct WebhookEventDataResource { pub sale_status: SaleStatus, pub payme_signature: Secret<String>, pub buyer_key: Option<Secret<String>>, pub notify_type: NotifyType, pub payme_sale_id: String, pub payme_transaction_id: String, pub status_error_details: Option<String>, pub status_er...
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
96
rust
WebhookEventDataResource
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_payment_fingerprint( state: &SessionState, merchant_id: common_utils::id_type::MerchantId, payment_method_data: Option<domain::PaymentMethodData>, ) -> CustomResult<Option<String>, errors::ApiErrorResponse> { let merchant_fingerprint_secret = get_merchant_fingerprint_secret(state, ...
crates/router/src/core/blocklist/utils.rs
router
function_signature
227
rust
null
null
null
null
generate_payment_fingerprint
null
null
null
null
null
null
null
pub struct BillingConnectorPaymentsSyncFlowData;
crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
hyperswitch_domain_models
struct_definition
9
rust
BillingConnectorPaymentsSyncFlowData
null
null
null
null
null
null
null
null
null
null
null
pub struct NuveiACSResponse { #[serde(rename = "threeDSServerTransID")] pub three_ds_server_trans_id: Secret<String>, #[serde(rename = "acsTransID")] pub acs_trans_id: Secret<String>, pub message_type: String, pub message_version: String, pub trans_status: Option<LiabilityShift>, pub mes...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
103
rust
NuveiACSResponse
null
null
null
null
null
null
null
null
null
null
null
impl PaymentAuthorize for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
PaymentAuthorize for
impl PaymentAuthorize for for Netcetera
null
null
null
null
null
null
null
null
pub async fn retry_delivery_attempt( state: SessionState, merchant_id: common_utils::id_type::MerchantId, event_id: String, ) -> RouterResponse<api::webhook_events::EventRetrieveResponse> { let store = state.store.as_ref(); let key_manager_state = &(&state).into(); let key_store = store ...
crates/router/src/core/webhooks/webhook_events.rs
router
function_signature
857
rust
null
null
null
null
retry_delivery_attempt
null
null
null
null
null
null
null
## 2025.04.07.0 ### Features - **connector:** [BANKOFAMERICA] Enable SamsungPay In Dashboard ([#7677](https://github.com/juspay/hyperswitch/pull/7677)) ([`f7b0409`](https://github.com/juspay/hyperswitch/commit/f7b040942ceed5d031a8154b630845186e39b7ad)) - **core:** Add network error related columns in payment attempt ...
CHANGELOG.md#chunk10
null
doc_chunk
8,114
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/revenue_recovery.rs //! Revenue Recovery Interface use hyperswitch_domain_models::{ router_flow_types::{ BillingConnectorInvoiceSync, BillingConnectorPaymentsSync, RecoveryRecordBack, }, router_request_types::revenue_recovery::{ BillingConnectorI...
crates/hyperswitch_interfaces/src/api/revenue_recovery.rs
hyperswitch_interfaces
full_file
361
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Order { invoice_number: String, description: String, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
Order
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutCreate for Nomupay {}
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
11
rust
null
Nomupay
api::PayoutCreate for
impl api::PayoutCreate for for Nomupay
null
null
null
null
null
null
null
null
pub struct AuthenticationResponse { #[serde(rename = "acsURL")] pub acs_url: Option<url::Url>, pub acs_reference_number: Option<String>, #[serde(rename = "acsTransID")] pub acs_trans_id: Option<String>, #[serde(rename = "dsTransID")] pub ds_trans_id: Option<String>, pub acs_signed_conten...
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
struct_definition
107
rust
AuthenticationResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodsEnabled { /// Type of payment method. #[schema(value_type = PaymentMethod,example = "card")] pub payment_method: common_enums::PaymentMethod, /// Subtype of payment method #[schema(value_type = Option<Vec<RequestPaymentMethodTypes>>,example = json!(["credit"]))] pub pay...
crates/api_models/src/admin.rs
api_models
struct_definition
87
rust
PaymentMethodsEnabled
null
null
null
null
null
null
null
null
null
null
null
pub struct PaystackEftRedirect { reference: String, status: String, url: String, }
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
PaystackEftRedirect
null
null
null
null
null
null
null
null
null
null
null
impl<K, V> IntoIterator for DenseMap<K, V> where K: EntityId, { type Item = (K, V); type IntoIter = IntoIter<K, V>; fn into_iter(self) -> Self::IntoIter { IntoIter::new(self.data.into_iter()) } }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
impl_block
68
rust
null
DenseMap
IntoIterator for
impl IntoIterator for for DenseMap
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/custombilling.rs Public functions: 1 Public structs: 1 pub mod transformers; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMinorUnit, String...
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
full_file
4,247
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn wallet_token(payment_method_id: String) -> Self { Self::WalletToken(WalletTokenData { payment_method_id }) }
crates/router/src/types/storage/payment_method.rs
router
function_signature
29
rust
null
null
null
null
wallet_token
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payments/{payment_id}/capture" { "post": { "tags": [ "Payments" ], "summary": "Payments - Capture", "description": "Captures the funds for a previously authorized payment intent where `capture_method` was set to `manual` and the payment is in a `requires_capture` stat...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
487
.json
null
null
null
null
null
openapi_spec
paths
[ "/payments/{payment_id}/capture" ]
null
null
null
null
impl Refund for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
9
rust
null
Threedsecureio
Refund for
impl Refund for for Threedsecureio
null
null
null
null
null
null
null
null
/// Converts a `time::PrimitiveDateTime` to a `prost_types::Timestamp`. pub fn convert_to_prost_timestamp(dt: time::PrimitiveDateTime) -> prost_types::Timestamp { let odt = dt.assume_utc(); prost_types::Timestamp { seconds: odt.unix_timestamp(), // This conversion is safe as ...
crates/external_services/src/lib.rs
external_services
function_signature
125
rust
null
null
null
null
convert_to_prost_timestamp
null
null
null
null
null
null
null
pub fn collect(self) -> PaymentIntentMetricsBucketValue { let ( successful_payments, successful_payments_without_smart_retries, total_payments, payments_success_rate, payments_success_rate_without_smart_retries, ) = self.payments_success_rate.c...
crates/analytics/src/payment_intents/accumulator.rs
analytics
function_signature
392
rust
null
null
null
null
collect
null
null
null
null
null
null
null
pub fn build_unified_connector_service_external_vault_proxy_metadata( external_vault_merchant_connector_account: MerchantConnectorAccountTypeDetails, ) -> CustomResult<String, UnifiedConnectorServiceError> { let external_vault_metadata = external_vault_merchant_connector_account .get_metadata() ...
crates/router/src/core/unified_connector_service.rs
router
function_signature
487
rust
null
null
null
null
build_unified_connector_service_external_vault_proxy_metadata
null
null
null
null
null
null
null
Documentation: api-reference/v1/business-profile/business-profile--delete.mdx # Type: Doc File --- openapi: delete /account/{account_id}/business_profile/{profile_id} ---
api-reference/v1/business-profile/business-profile--delete.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ZslWebhookResponse { pub process_type: ProcessType, pub process_code: ProcessCode, pub status: String, pub txn_id: String, pub txn_date: String, pub paid_ccy: api_models::enums::Currency, pub paid_amt: String, pub consr_paid_ccy: Option<api_models::enums::Currency>, pub co...
crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs
hyperswitch_connectors
struct_definition
165
rust
ZslWebhookResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_authorization_token( &self, auth: worldline::WorldlineAuthType, http_method: Method, content_type: &str, date: &str, endpoint: &str, ) -> CustomResult<String, errors::ConnectorError> { let signature_data: String = format!( "{}\n{}\n...
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
function_signature
197
rust
null
null
null
null
generate_authorization_token
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/profile.rs use std::str::FromStr; crate::id_type!( ProfileId, "A type for profile_id that can be used for business profile ids" ); crate::impl_id_type_methods!(ProfileId, "profile_id"); // This is to display the `ProfileId` as ProfileId(abcd) crate::impl_debug_id_type!(P...
crates/common_utils/src/id_type/profile.rs
common_utils
full_file
345
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct LocalBankTransaferRequest { bank_code: Option<String>, pay_method: Option<String>, }
crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
LocalBankTransaferRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Mifinity {}
crates/hyperswitch_connectors/src/connectors/mifinity.rs
hyperswitch_connectors
impl_block
9
rust
null
Mifinity
api::Payment for
impl api::Payment for for Mifinity
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs Public functions: 2 Public structs: 3 use serde::Serialize; #[derive(Clone, Debug)] pub struct VerifyWebhookSource; #[derive(Debug, Clone, Serialize)] pub struct ConnectorMandateDetails { pub connector_mandate_id: masking::Secret<String>,...
crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs
hyperswitch_domain_models
full_file
156
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/accumulator.rs Public functions: 1 Public structs: 3 use api_models::analytics::auth_events::AuthEventMetricsBucketValue; use super::metrics::AuthEventMetricRow; #[derive(Debug, Default)] pub struct AuthEventMetricsAccumulator { pub authentication_count: CountAccumulator,...
crates/analytics/src/auth_events/accumulator.rs
analytics
full_file
775
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CurrencyConversionResponse { pub converted_amount: String, pub currency: String, }
crates/api_models/src/currency.rs
api_models
struct_definition
20
rust
CurrencyConversionResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NexixpayRouterData<T> { pub amount: StringMinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
NexixpayRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct CaptureBodyResponse { submit_single_capture_response: SubmitSingleCaptureResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
CaptureBodyResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankTransferNextStepsData { "allOf": [ { "$ref": "#/components/schemas/BankTransferInstructions" }, { "type": "object", "properties": { "receiver": { "allOf": [ { "$ref": "#/components/schemas/ReceiverDeta...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
99
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankTransferNextStepsData" ]
null
null
null
null
pub async fn update( self, conn: &PgPooledConn, address_update_internal: AddressUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, _, >(...
crates/diesel_models/src/query/address.rs
diesel_models
function_signature
137
rust
null
null
null
null
update
null
null
null
null
null
null
null
pub struct CardTokenData { pub payment_method_id: common_utils::id_type::GlobalPaymentMethodId, pub locker_id: Option<String>, pub token: String, }
crates/router/src/types/storage/payment_method.rs
router
struct_definition
38
rust
CardTokenData
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeEvidence { pub comment: String, pub id: Secret<String>, pub created_at: Option<PrimitiveDateTime>, pub url: url::Url, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
DisputeEvidence
null
null
null
null
null
null
null
null
null
null
null
api_models::webhook_events::OutgoingWebhookRequestContent, api_models::webhook_events::OutgoingWebhookResponseContent, api_models::webhook_events::TotalEventsResponse, api_models::enums::WebhookDeliveryAttempt, api_models::enums::PaymentChargeType, api_models::enums::Stri...
crates/openapi/src/openapi.rs#chunk1
openapi
chunk
1,579
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TsysSyncResponse { search_transaction_response: SearchResponseTypes, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
TsysSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_forex_enabled(&self) -> bool { match self { Self::Sqlx { forex_enabled, .. } | Self::Clickhouse { forex_enabled, .. } | Self::CombinedCkh { forex_enabled, .. } | Self::CombinedSqlx { forex_enabled, .. } => *forex_enabled, } }
crates/analytics/src/lib.rs
analytics
function_signature
75
rust
null
null
null
null
get_forex_enabled
null
null
null
null
null
null
null
pub struct ListBlocklistQuery { #[schema(value_type = BlocklistDataKind)] pub data_kind: enums::BlocklistDataKind, #[serde(default = "default_list_limit")] pub limit: u16, #[serde(default)] pub offset: u16, }
crates/api_models/src/blocklist.rs
api_models
struct_definition
62
rust
ListBlocklistQuery
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_by_key(conn: &PgPooledConn, key: &str) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, _>( conn, dsl::key.eq(key.to_owned()), ) .await }
crates/diesel_models/src/query/configs.rs
diesel_models
function_signature
66
rust
null
null
null
null
delete_by_key
null
null
null
null
null
null
null
pub struct AuthenticationDataWithUser { pub merchant_account: domain::MerchantAccount, pub key_store: domain::MerchantKeyStore, pub user: storage::User, pub profile_id: id_type::ProfileId, }
crates/router/src/services/authentication.rs
router
struct_definition
48
rust
AuthenticationDataWithUser
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/fiuu.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 FiuuTest; impl Con...
crates/router/tests/connectors/fiuu.rs
router
full_file
2,932
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn add_access_token_for_payout<F: Clone + 'static>( state: &SessionState, connector: &api_types::ConnectorData, merchant_context: &domain::MerchantContext, router_data: &types::PayoutsRouterData<F>, payout_type: Option<enums::PayoutType>, ) -> RouterResult<types::AddAccessTokenResult> { ...
crates/router/src/core/payouts/access_token.rs
router
function_signature
587
rust
null
null
null
null
add_access_token_for_payout
null
null
null
null
null
null
null
pub struct GlobepayPaymentsResponse { result_code: Option<GlobepayPaymentStatus>, order_id: Option<String>, qrcode_img: Option<url::Url>, return_code: GlobepayReturnCode, //Execution result return_msg: Option<String>, }
crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
hyperswitch_connectors
struct_definition
60
rust
GlobepayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ConnectorVolumeSplit { "type": "object", "required": [ "connector", "split" ], "properties": { "connector": { "$ref": "#/components/schemas/RoutableConnectorChoice" }, "split": { "type": "integer", "format": "int32", "minimum": 0...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
96
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ConnectorVolumeSplit" ]
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/payouts.rs Public functions: 6 use async_bb8_diesel::AsyncRunQueryDsl; use diesel::{ associations::HasTable, debug_query, pg::Pg, BoolExpressionMethods, ExpressionMethods, JoinOnDsl, QueryDsl, }; use error_stack::{report, ResultExt}; use super::generics; use crate::{ ...
crates/diesel_models/src/query/payouts.rs
diesel_models
full_file
1,179
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NameIdUnit<N: Debug + Clone, I: Debug + Clone> { pub name: N, pub id: I, }
crates/api_models/src/user.rs
api_models
struct_definition
31
rust
NameIdUnit
null
null
null
null
null
null
null
null
null
null
null