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 TokenizedCardValue1 { pub card_number: String, pub exp_year: String, pub exp_month: String, pub nickname: Option<String>, pub card_last_four: Option<String>, pub card_token: Option<String>, pub card_holder_name: Option<Secret<String>>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
65
rust
TokenizedCardValue1
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMetricRow { pub currency: Option<DBEnumWrapper<storage_enums::Currency>>, pub status: Option<DBEnumWrapper<storage_enums::AttemptStatus>>, pub connector: Option<String>, pub authentication_type: Option<DBEnumWrapper<storage_enums::AuthenticationType>>, pub payment_method: Option<St...
crates/analytics/src/payments/metrics.rs
analytics
struct_definition
289
rust
PaymentMetricRow
null
null
null
null
null
null
null
null
null
null
null
pub trait VaultingDataInterface { fn get_vaulting_data_key(&self) -> String; }
crates/hyperswitch_domain_models/src/vault.rs
hyperswitch_domain_models
trait_definition
22
rust
null
null
VaultingDataInterface
null
null
null
null
null
null
null
null
null
pub fn get_banks( state: &routes::SessionState, pm_type: common_enums::enums::PaymentMethodType, connectors: Vec<String>, ) -> Result<Vec<BankCodeResponse>, errors::ApiErrorResponse> { let mut bank_names_hm: HashMap<String, HashSet<common_enums::enums::BankNames>> = HashMap::new(); if match...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
600
rust
null
null
null
null
get_banks
null
null
null
null
null
null
null
pub fn validate_success_transaction( transaction: &storage::PaymentAttempt, ) -> CustomResult<(), RefundValidationError> { if transaction.status != enums::AttemptStatus::Charged { Err(report!(RefundValidationError::UnsuccessfulPaymentAttempt))? } Ok(()) }
crates/router/src/core/utils/refunds_validator.rs
router
function_signature
58
rust
null
null
null
null
validate_success_transaction
null
null
null
null
null
null
null
pub struct AcquirerDataInput { pub country: Option<enums::Country>, pub fraud_rate: Option<f64>, }
crates/euclid/src/backend/inputs.rs
euclid
struct_definition
28
rust
AcquirerDataInput
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/coingate.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use common_enums::{enums, CaptureMethod, PaymentMethod, PaymentMethodType}; use common_utils::{ crypto, errors::CustomResult, ext_traits::{ByteSliceExt, Byt...
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
full_file
5,174
null
null
null
null
null
null
null
null
null
null
null
null
null
impl AuthenticationConnectorAccountMap { /// fn to get click to pay connector_account_id pub fn get_click_to_pay_connector_account_id( &self, ) -> Result<common_utils::id_type::MerchantConnectorAccountId, errors::ValidationError> { self.0 .get(&enums::AuthenticationProduct::Click...
crates/common_types/src/payments.rs
common_types
impl_block
117
rust
null
AuthenticationConnectorAccountMap
null
impl AuthenticationConnectorAccountMap
null
null
null
null
null
null
null
null
pub struct PayoutsMandateReference( pub HashMap<id_type::MerchantConnectorAccountId, PayoutsMandateReferenceRecord>, );
crates/api_models/src/payment_methods.rs
api_models
struct_definition
31
rust
PayoutsMandateReference
null
null
null
null
null
null
null
null
null
null
null
pub async fn profiles_list() {}
crates/openapi/src/routes/merchant_account.rs
openapi
function_signature
7
rust
null
null
null
null
profiles_list
null
null
null
null
null
null
null
File: crates/router/src/core/connector_onboarding/paypal.rs Public functions: 3 use api_models::{admin::MerchantConnectorUpdate, connector_onboarding as api}; use common_utils::ext_traits::Encode; use error_stack::ResultExt; pub use external_services::http_client; use masking::{ExposeInterface, PeekInterface, Secret}...
crates/router/src/core/connector_onboarding/paypal.rs
router
full_file
1,482
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantAccountDeleteResponse { "type": "object", "required": [ "merchant_id", "deleted" ], "properties": { "merchant_id": { "type": "string", "description": "The identifier for the Merchant Account", "example": "y3oqhf46pyzuxjbcn2giaqnb44", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
140
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantAccountDeleteResponse" ]
null
null
null
null
pub async fn apple_pay_merchant_registration( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<verifications::ApplepayMerchantVerificationRequest>, path: web::Path<common_utils::id_type::MerchantId>, ) -> impl Responder { let flow = Flow::Verification; let merchant_id = path...
crates/router/src/routes/verification.rs
router
function_signature
229
rust
null
null
null
null
apple_pay_merchant_registration
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs Public functions: 3 Public structs: 85 use api_models::payments; #[cfg(feature = "payouts")] use api_models::payouts::PayoutMethodData; use base64::Engine; use common_enums::{enums, FutureUsage}; use common_types::payments::{ApplePayPrede...
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct JpmorganPaymentsResponse { transaction_id: String, request_id: String, transaction_state: JpmorganTransactionState, response_status: String, response_code: String, response_message: String, payment_method_type: PaymentMethodType, capture_method: Option<CapMethod>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
67
rust
JpmorganPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl GlobalAttemptId { /// Generate a new GlobalAttemptId from a cell id pub fn generate(cell_id: &super::CellId) -> Self { let global_id = super::GlobalId::generate(cell_id, super::GlobalEntity::Attempt); Self(global_id) } /// Get string representation of the id pub fn get_string_r...
crates/common_utils/src/id_type/global_id/payment.rs
common_utils
impl_block
158
rust
null
GlobalAttemptId
null
impl GlobalAttemptId
null
null
null
null
null
null
null
null
pub fn server(config: AppState) -> Scope { web::scope("/events") .app_data(web::Data::new(config)) .service(web::scope("/profile/list").service(web::resource("").route( web::post().to(webhook_events::list_initial_webhook_delivery_attempts_with_jwtauth), ))) ...
crates/router/src/routes/app.rs
router
function_signature
187
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct Token { pub id: Secret<String>, pub created: i64, #[serde(rename = "objectType")] pub object_type: String, pub first6: String, pub last4: String, pub fingerprint: Secret<String>, pub brand: String, #[serde(rename = "type")] pub token_type: String, pub country: Stri...
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
113
rust
Token
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentIntentMetricsBucketIdentifier { pub status: Option<IntentStatus>, pub currency: Option<Currency>, pub profile_id: Option<String>, pub connector: Option<String>, pub auth_type: Option<AuthenticationType>, pub payment_method: Option<String>, pub payment_method_type: Option<St...
crates/api_models/src/analytics/payment_intents.rs
api_models
struct_definition
167
rust
PaymentIntentMetricsBucketIdentifier
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Elavon {}
crates/hyperswitch_connectors/src/connectors/elavon.rs
hyperswitch_connectors
impl_block
10
rust
null
Elavon
api::PaymentSync for
impl api::PaymentSync for for Elavon
null
null
null
null
null
null
null
null
pub struct PaymentRoutingInfo { pub algorithm: Option<routing::StraightThroughAlgorithm>, pub pre_routing_results: Option<HashMap<api_enums::PaymentMethodType, PreRoutingConnectorChoice>>, }
crates/hyperswitch_domain_models/src/routing.rs
hyperswitch_domain_models
struct_definition
42
rust
PaymentRoutingInfo
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/payu_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct PayUSeleniumTest; impl SeleniumTest for PayUSeleniumTest { fn get_connector_name(&self) -> String { "payu".to_string() } } async fn should_m...
crates/test_utils/tests/connectors/payu_ui.rs
test_utils
full_file
388
null
null
null
null
null
null
null
null
null
null
null
null
null
impl RoutingProfileMetadata { pub fn metadata_is_advanced_rule_for_payments(&self) -> bool { matches!(self.kind, enums::RoutingAlgorithmKind::Advanced) && matches!(self.algorithm_for, enums::TransactionType::Payment) } }
crates/diesel_models/src/routing_algorithm.rs
diesel_models
impl_block
52
rust
null
RoutingProfileMetadata
null
impl RoutingProfileMetadata
null
null
null
null
null
null
null
null
pub(crate) fn into_stripe_next_action( next_action: Option<payments::NextActionData>, return_url: Option<String>, ) -> Option<StripeNextAction> { next_action.map(|next_action_data| match next_action_data { payments::NextActionData::RedirectToUrl { redirect_to_url } => { StripeNextAction:...
crates/router/src/compatibility/stripe/setup_intents/types.rs
router
function_signature
581
rust
null
null
null
null
into_stripe_next_action
null
null
null
null
null
null
null
pub struct BillingConnectorInvoiceSyncRequest { /// Invoice id pub billing_connector_invoice_id: String, /// connector params of the connector pub connector_params: connector_endpoints::ConnectorParams, }
crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs
hyperswitch_domain_models
struct_definition
43
rust
BillingConnectorInvoiceSyncRequest
null
null
null
null
null
null
null
null
null
null
null
impl GetRoutableConnectorsForChoice for DecideConnector { async fn get_routable_connectors( &self, db: &dyn StorageInterface, business_profile: &domain::Profile, ) -> RouterResult<RoutableConnectors> { let fallback_config = helpers::get_merchant_default_config( db, ...
crates/router/src/core/routing.rs
router
impl_block
124
rust
null
DecideConnector
GetRoutableConnectorsForChoice for
impl GetRoutableConnectorsForChoice for for DecideConnector
null
null
null
null
null
null
null
null
pub fn get_tenant(&self, tenant_id: &id_type::TenantId) -> Option<&Tenant> { self.tenants.0.get(tenant_id) }
crates/drainer/src/settings.rs
drainer
function_signature
38
rust
null
null
null
null
get_tenant
null
null
null
null
null
null
null
pub struct ApplePayTokenPaymentInformation { fluid_data: FluidData, tokenized_card: ApplePayTokenizedCard, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
ApplePayTokenPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_merchant_account( state: web::Data<AppState>, req: HttpRequest, mid: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::MerchantsAccountDelete; let mid = mid.into_inner(); let payload = web::Json(admin::MerchantId { merchant_id: mid }).into_in...
crates/router/src/routes/admin.rs
router
function_signature
148
rust
null
null
null
null
delete_merchant_account
null
null
null
null
null
null
null
impl behaviour::Conversion for PaymentAddress { type DstType = diesel_models::address::Address; type NewDstType = diesel_models::address::AddressNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { let converted_address = Address::convert(self.address).await?; Ok(di...
crates/router/src/types/domain/address.rs
router
impl_block
307
rust
null
PaymentAddress
behaviour::Conversion for
impl behaviour::Conversion for for PaymentAddress
null
null
null
null
null
null
null
null
pub async fn get_outgoing_webhook_response_content( self, ) -> webhook_events::OutgoingWebhookResponseContent { let status_code = self.response.status(); let response_headers = self .response .headers() .iter() .map(|(name, value)| { ...
crates/router/src/core/webhooks/types.rs
router
function_signature
283
rust
null
null
null
null
get_outgoing_webhook_response_content
null
null
null
null
null
null
null
impl PaymentMetricsAccumulator { pub fn collect(self) -> PaymentMetricsBucketValue { let ( payment_processed_amount, payment_processed_count, payment_processed_amount_without_smart_retries, payment_processed_count_without_smart_retries, payment_pro...
crates/analytics/src/payments/accumulator.rs
analytics
impl_block
427
rust
null
PaymentMetricsAccumulator
null
impl PaymentMetricsAccumulator
null
null
null
null
null
null
null
null
pub fn convert_connector( connector_name: &str, ) -> CustomResult<ConnectorEnum, errors::ApiErrorResponse> { match enums::Connector::from_str(connector_name) { Ok(name) => match name { enums::Connector::Aci => Ok(ConnectorEnum::Old(Box::new(connector::Aci::new()))), ...
crates/router/src/types/api/feature_matrix.rs
router
function_signature
4,174
rust
null
null
null
null
convert_connector
null
null
null
null
null
null
null
pub struct BamboraapacMandateResponse { body: MandateBodyResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
BamboraapacMandateResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Blackhawknetwork {}
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
11
rust
null
Blackhawknetwork
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Blackhawknetwork
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/forex") .app_data(web::Data::new(state.clone())) .app_data(web::Data::new(state.clone())) .service(web::resource("/rates").route(web::get().to(currency::retrieve_forex))) .service( web::resourc...
crates/router/src/routes/app.rs
router
function_signature
92
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct UpdateUserRoleRequest { pub email: pii::Email, pub role_id: String, }
crates/api_models/src/user_role.rs
api_models
struct_definition
22
rust
UpdateUserRoleRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn sso_sign( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::SsoSignInRequest>, ) -> HttpResponse { let flow = Flow::SignInWithSso; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( flow, state.clone(), &req, ...
crates/router/src/routes/user.rs
router
function_signature
171
rust
null
null
null
null
sso_sign
null
null
null
null
null
null
null
impl api::PaymentVoid for Powertranz {}
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
impl_block
10
rust
null
Powertranz
api::PaymentVoid for
impl api::PaymentVoid for for Powertranz
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.id.clone() }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
22
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
Web Documentation: Split Payments | Hyperswitch # Type: Web Doc Split payments refer to the process of dividing a single transaction into multiple parts, ensuring that funds are automatically distributed among different parties in real-time or through scheduled settlements. This is essential for marketplaces, platform...
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/split-payments
null
web_doc_file
262
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/split-payments
Split Payments | Hyperswitch
null
pub async fn organization_retrieve() {}
crates/openapi/src/routes/organization.rs
openapi
function_signature
8
rust
null
null
null
null
organization_retrieve
null
null
null
null
null
null
null
pub struct BluecodeSyncResponse { pub id: Option<i64>, pub order_id: String, pub user_id: Option<i64>, pub customer_id: Option<String>, pub customer_email: Option<Email>, pub customer_phone: Option<String>, pub status: BluecodePaymentStatus, pub payment_provider: Option<String>, pub ...
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
struct_definition
424
rust
BluecodeSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CreateOrderResult { pub create_order_result: Result<String, ErrorResponse>, }
crates/router/src/types.rs
router
struct_definition
18
rust
CreateOrderResult
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundFilterValue { pub dimension: RefundDimensions, pub values: Vec<String>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
23
rust
RefundFilterValue
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/payment_link.rs Public functions: 2 use diesel::{associations::HasTable, ExpressionMethods}; use super::generics; use crate::{ payment_link::{PaymentLink, PaymentLinkNew}, schema::payment_link::dsl, PgPooledConn, StorageResult, }; impl PaymentLinkNew { pub async ...
crates/diesel_models/src/query/payment_link.rs
diesel_models
full_file
194
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Thunes {}
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
8
rust
null
Thunes
api::Payment for
impl api::Payment for for Thunes
null
null
null
null
null
null
null
null
pub struct FrmFulfillmentSignifydApiRequest { ///unique order_id for the order_details in the transaction #[schema(max_length = 255, example = "pay_qiYfHcDou1ycIaxVXKHF")] pub order_id: String, ///denotes the status of the fulfillment... can be one of PARTIAL, COMPLETE, REPLACEMENT, CANCELED #[schem...
crates/router/src/core/fraud_check/types.rs
router
struct_definition
147
rust
FrmFulfillmentSignifydApiRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Celero {}
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
9
rust
null
Celero
api::PaymentSession for
impl api::PaymentSession for for Celero
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for CtpMastercard {}
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
11
rust
null
CtpMastercard
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for CtpMastercard
null
null
null
null
null
null
null
null
pub async fn decide_frm_flow( router_data: &mut FrmSaleRouterData, state: &SessionState, connector: &FraudCheckConnectorData, call_connector_action: payments::CallConnectorAction, _merchant_context: &domain::MerchantContext, ) -> RouterResult<FrmSaleRouterData> { let connector_integration: servi...
crates/router/src/core/fraud_check/flows/sale_flow.rs
router
function_signature
162
rust
null
null
null
null
decide_frm_flow
null
null
null
null
null
null
null
pub struct Celero { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
struct_definition
26
rust
Celero
null
null
null
null
null
null
null
null
null
null
null
pub fn from_decision_engine_approach(approach: &str) -> Self { match approach { "SR_SELECTION_V3_ROUTING" => Self::Exploitation, "SR_V3_HEDGING" => Self::Exploration, _ => Self::Default, } }
crates/router/src/core/payments/routing/utils.rs
router
function_signature
62
rust
null
null
null
null
from_decision_engine_approach
null
null
null
null
null
null
null
pub struct BankAccountCredentialsRequest { pub access_token: Secret<String>, pub optional_ids: Option<BankAccountOptionalIDs>, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
28
rust
BankAccountCredentialsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymeCard { credit_card_cvv: Secret<String>, credit_card_exp: Secret<String>, credit_card_number: cards::CardNumber, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
PaymeCard
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
12
rust
null
Fiservemea
api::PaymentSync for
impl api::PaymentSync for for Fiservemea
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ThreeDsDecisionRuleExecuteRequest { "type": "object", "description": "Represents the request to execute a 3DS decision rule.", "required": [ "routing_id", "payment" ], "properties": { "routing_id": { "type": "string", "description": "The ID of the...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
281
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ThreeDsDecisionRuleExecuteRequest" ]
null
null
null
null
impl api::MandateSetup for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
11
rust
null
Forte
api::MandateSetup for
impl api::MandateSetup for for Forte
null
null
null
null
null
null
null
null
pub struct MultisafepayPaymentsResponse { pub success: bool, pub data: Data, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
MultisafepayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/utils.rs Public functions: 16 use api_models::analytics::{ api_event::{ApiEventDimensions, ApiEventMetrics}, auth_events::{AuthEventDimensions, AuthEventMetrics}, disputes::{DisputeDimensions, DisputeMetrics}, frm::{FrmDimensions, FrmMetrics}, payment_intents::{PaymentIn...
crates/analytics/src/utils.rs
analytics
full_file
984
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ShippingAddress { name: Option<Secret<String>>, street: Option<Secret<String>>, city: Option<String>, post_code: Option<Secret<String>>, country: Option<enums::CountryAlpha2>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
ShippingAddress
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_payment_method_data_from_vault( state: &routes::SessionState, merchant_context: &domain::MerchantContext, profile: &domain::Profile, pm: &domain::PaymentMethod, ) -> RouterResult<pm_types::VaultDeleteResponse> { let is_external_vault_enabled = profile.is_external_vault_enabled();...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
333
rust
null
null
null
null
delete_payment_method_data_from_vault
null
null
null
null
null
null
null
impl Forte { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
34
rust
null
Forte
null
impl Forte
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/stax.rs use std::{str::FromStr, time::Duration}; use masking::Secret; use router::types::{self, domain, storage::enums, PaymentsResponseData}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct StaxTest; impl ConnectorAction...
crates/router/tests/connectors/stax.rs
router
full_file
4,801
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
9
rust
null
Vgs
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Vgs
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetRefundRequest { merchant_authentication: AuthorizedotnetAuthType, transaction_request: RefundTransactionRequest, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
AuthorizedotnetRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Payeezy {}
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
10
rust
null
Payeezy
api::PaymentVoid for
impl api::PaymentVoid for for Payeezy
null
null
null
null
null
null
null
null
impl Default for ProducerSettings { fn default() -> Self { Self { upper_fetch_limit: 0, lower_fetch_limit: 1800, lock_key: "PRODUCER_LOCKING_KEY".into(), lock_ttl: 160, batch_size: 200, } } }
crates/scheduler/src/settings.rs
scheduler
impl_block
73
rust
null
ProducerSettings
Default for
impl Default for for ProducerSettings
null
null
null
null
null
null
null
null
impl ConnectorCommon for Bluesnap { fn id(&self) -> &'static str { "bluesnap" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &...
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
999
rust
null
Bluesnap
ConnectorCommon for
impl ConnectorCommon for for Bluesnap
null
null
null
null
null
null
null
null
impl api::MandateSetup for Worldline {}
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldline
api::MandateSetup for
impl api::MandateSetup for for Worldline
null
null
null
null
null
null
null
null
pub async fn get_decision_engine_active_dynamic_routing_algorithm( state: &SessionState, profile_id: &id_type::ProfileId, dynamic_routing_type: open_router::DecisionEngineDynamicAlgorithmType, ) -> RouterResult<Option<open_router::DecisionEngineConfigSetupRequest>> { logger::debug!( "decision_en...
crates/router/src/core/routing/helpers.rs
router
function_signature
225
rust
null
null
null
null
get_decision_engine_active_dynamic_routing_algorithm
null
null
null
null
null
null
null
pub struct Store { pub master_pool: PgPool, pub accounts_pool: PgPool, }
crates/storage_impl/src/database/store.rs
storage_impl
struct_definition
21
rust
Store
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct NoonOrder { amount: StringMajorUnit, currency: Option<enums::Currency>, channel: NoonChannels, category: Option<String>, reference: String, //Short description of the order. name: String, nvp: Option<NoonOrderNvp>, ip_address: Option<Secret<String, pii::IpAddress>>, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
77
rust
NoonOrder
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
10
rust
null
Payu
api::RefundExecute for
impl api::RefundExecute for for Payu
null
null
null
null
null
null
null
null
pub struct CallbackURLs { pub success: String, pub cancel: String, pub error: String, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
CallbackURLs
null
null
null
null
null
null
null
null
null
null
null
impl Payload { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
33
rust
null
Payload
null
impl Payload
null
null
null
null
null
null
null
null
pub struct ListRolesQueryParams { pub entity_type: Option<EntityType>, pub groups: Option<bool>, }
crates/api_models/src/user_role/role.rs
api_models
struct_definition
24
rust
ListRolesQueryParams
null
null
null
null
null
null
null
null
null
null
null
business_label: value.business_label, description: value.description, statement_descriptor_name: value.statement_descriptor_name, statement_descriptor_suffix: value.statement_descriptor_suffix, order_details: value.order...
crates/hyperswitch_domain_models/src/payments/payment_intent.rs#chunk1
hyperswitch_domain_models
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_mca_from_object_reference_id( state: &SessionState, object_reference_id: webhooks::ObjectReferenceId, merchant_context: &domain::MerchantContext, connector_name: &str, ) -> CustomResult<domain::MerchantConnectorAccount, errors::ApiErrorResponse> { let db = &*state.store; #[cfg(...
crates/router/src/utils.rs
router
function_signature
617
rust
null
null
null
null
get_mca_from_object_reference_id
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/user_role.rs Public functions: 7 use async_bb8_diesel::AsyncRunQueryDsl; use common_utils::id_type; use diesel::{ associations::HasTable, debug_query, pg::Pg, result::Error as DieselError, sql_types::{Bool, Nullable}, BoolExpressionMethods, ExpressionMethod...
crates/diesel_models/src/query/user_role.rs
diesel_models
full_file
2,546
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantConnectorDetailsWrap { /// Creds Identifier is to uniquely identify the credentials. Do not send any sensitive info, like encoded_data in this field. And do not send the string "null". pub creds_identifier: String, /// Merchant connector details type type. Base64 Encode the credentials an...
crates/api_models/src/admin.rs
api_models
struct_definition
177
rust
MerchantConnectorDetailsWrap
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/xendit.rs use masking::Secret; use router::{ types::{self, api, storage::enums, }}; use crate::utils::{self, ConnectorActions}; use test_utils::connector_auth; #[derive(Clone, Copy)] struct XenditTest; impl ConnectorActions for XenditTest {} impl utils::Connector for XenditTe...
crates/router/tests/connectors/xendit.rs
router
full_file
2,908
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Breadpay { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, errors::ConnectorError> { match action { PaymentAction::PSync ...
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
105
rust
null
Breadpay
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Breadpay
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/api_keys/{merchant_id}" { "post": { "tags": [ "API Key" ], "summary": "API Key - Create", "description": "Create a new API Key for accessing our APIs from your servers. The plaintext API Key will be\ndisplayed only once on creation, so ensure you store it securely.", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
298
.json
null
null
null
null
null
openapi_spec
paths
[ "/api_keys/{merchant_id}" ]
null
null
null
null
pub fn create_merchant_account_request_for_org( req: user_api::UserOrgMerchantCreateRequest, org: organization::Organization, product_type: common_enums::MerchantProductType, ) -> UserResult<api_models::admin::MerchantAccountCreate> { let merchant_id = generate_env_specific_merchant_id(req.merchant_name...
crates/router/src/utils/user.rs
router
function_signature
278
rust
null
null
null
null
create_merchant_account_request_for_org
null
null
null
null
null
null
null
pub struct RoutableConnectorChoiceWithBucketName { pub routable_connector_choice: RoutableConnectorChoice, pub bucket_name: String, }
crates/api_models/src/routing.rs
api_models
struct_definition
30
rust
RoutableConnectorChoiceWithBucketName
null
null
null
null
null
null
null
null
null
null
null
pub fn new(normalized_time_range: TimeRange) -> Self { Self { time_bucket: normalized_time_range, start_time: normalized_time_range.start_time, } }
crates/api_models/src/analytics/api_event.rs
api_models
function_signature
39
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PayoutFulfill for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
12
rust
null
Cybersource
api::PayoutFulfill for
impl api::PayoutFulfill for for Cybersource
null
null
null
null
null
null
null
null
pub struct OpensearchErrorDetails { #[serde(rename = "type")] pub error_type: String, pub reason: String, }
crates/api_models/src/analytics/search.rs
api_models
struct_definition
30
rust
OpensearchErrorDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_user_theme( state: SessionState, user_from_token: UserFromToken, theme_id: String, ) -> UserResponse<()> { let db_theme = state .store .find_theme_by_theme_id(theme_id.clone()) .await .to_not_found_response(UserErrors::ThemeNotFound)?; let user_ro...
crates/router/src/core/user/theme.rs
router
function_signature
241
rust
null
null
null
null
delete_user_theme
null
null
null
null
null
null
null
pub struct GpaymentsAuthType { /// base64 encoded certificate pub certificate: Secret<String>, /// base64 encoded private_key pub private_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/gpayments/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
GpaymentsAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/zen_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct ZenSeleniumTest; impl SeleniumTest for ZenSeleniumTest { fn get_connector_name(&self) -> String { "zen".to_string() } } async fn should_make_...
crates/test_utils/tests/connectors/zen_ui.rs
test_utils
full_file
321
null
null
null
null
null
null
null
null
null
null
null
null
null
### Features - **connector:** [BOA/CYBERSOURCE] Populate connector_transaction_id ([#3202](https://github.com/juspay/hyperswitch/pull/3202)) ([`110d3d2`](https://github.com/juspay/hyperswitch/commit/110d3d211be2edf47533cc5297ae159cad0e5034)) **Full Changelog:** [`v1.104.0...v1.105.0`](https://github.com/juspay/hyper...
CHANGELOG.md#chunk43
null
doc_chunk
8,159
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl BlackList for SinglePurposeToken { async fn check_in_blacklist<A>(&self, state: &A) -> RouterResult<bool> where A: SessionStateInfo + Sync, { check_user_in_blacklist(state, &self.user_id, self.exp).await } }
crates/router/src/services/authentication/blacklist.rs
router
impl_block
64
rust
null
SinglePurposeToken
BlackList for
impl BlackList for for SinglePurposeToken
null
null
null
null
null
null
null
null
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_owned(), or...
crates/diesel_models/src/user/theme.rs
diesel_models
function_signature
181
rust
null
null
null
null
new
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ScaExemptionType { "type": "string", "description": "SCA Exemptions types available for authentication", "enum": [ "low_value", "transaction_risk_analysis" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
57
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ScaExemptionType" ]
null
null
null
null
File: crates/router/tests/connectors/tsys.rs use std::{str::FromStr, time::Duration}; use cards::CardNumber; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct TsysTest; impl ConnectorActions ...
crates/router/tests/connectors/tsys.rs
router
full_file
3,312
null
null
null
null
null
null
null
null
null
null
null
null
null
impl RetrieveFile for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
6
rust
null
Stripe
RetrieveFile for
impl RetrieveFile for for Stripe
null
null
null
null
null
null
null
null