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 SearchData { transactions: TransactionData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
SearchData
null
null
null
null
null
null
null
null
null
null
null
/// Generate a new GlobalTokenId from a cell id pub fn generate(cell_id: &crate::id_type::CellId) -> Self { let global_id = super::GlobalId::generate(cell_id, super::GlobalEntity::Token); Self(global_id) }
crates/common_utils/src/id_type/global_id/token.rs
common_utils
function_signature
59
rust
null
null
null
null
generate
null
null
null
null
null
null
null
pub struct DeutschebankAuthType { pub(super) client_id: Secret<String>, pub(super) merchant_id: Secret<String>, pub(super) client_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
DeutschebankAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct UserFromStorage(pub storage_user::User);
crates/router/src/types/domain/user.rs
router
struct_definition
11
rust
UserFromStorage
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payment_methods/utils.rs Public functions: 3 use std::{str::FromStr, sync::Arc}; use api_models::{ admin::{self, PaymentMethodsEnabled}, enums as api_enums, payment_methods::RequestPaymentMethodTypes, }; use common_enums::enums; #[cfg(feature = "v2")] use common_utils::ext_tr...
crates/router/src/core/payment_methods/utils.rs
router
full_file
6,094
null
null
null
null
null
null
null
null
null
null
null
null
null
impl FraudCheckSale for Signifyd {}
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
9
rust
null
Signifyd
FraudCheckSale for
impl FraudCheckSale for for Signifyd
null
null
null
null
null
null
null
null
pub struct PaymentProcessorTokenDetails { pub payment_processor_token: String, pub expiry_month: Option<Secret<String>>, pub expiry_year: Option<Secret<String>>, pub card_issuer: Option<String>, pub last_four_digits: Option<String>, pub card_network: Option<CardNetwork>, pub card_type: Optio...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
struct_definition
71
rust
PaymentProcessorTokenDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct OrderInformation { amount_details: Amount, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
OrderInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct CheckoutGooglePayData { protocol_version: Secret<String>, signature: Secret<String>, signed_message: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
CheckoutGooglePayData
null
null
null
null
null
null
null
null
null
null
null
.and_then(|data| data.tid) .map(|tid| tid.expose().to_string()); let transaction_status = item .response .transaction .clone() .map(|transaction_data| transaction_data.status) ...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs#chunk1
hyperswitch_connectors
chunk
4,622
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Blocklist { pub merchant_id: common_utils::id_type::MerchantId, pub fingerprint_id: String, pub data_kind: common_enums::BlocklistDataKind, pub metadata: Option<serde_json::Value>, pub created_at: time::PrimitiveDateTime, }
crates/diesel_models/src/blocklist.rs
diesel_models
struct_definition
62
rust
Blocklist
null
null
null
null
null
null
null
null
null
null
null
impl DummyConnectorPaymentAttempt { pub fn build_payment_data( self, status: DummyConnectorStatus, next_action: Option<DummyConnectorNextAction>, return_url: Option<String>, ) -> DummyConnectorPaymentData { DummyConnectorPaymentData { attempt_id: self.attempt_...
crates/router/src/routes/dummy_connector/types.rs
router
impl_block
140
rust
null
DummyConnectorPaymentAttempt
null
impl DummyConnectorPaymentAttempt
null
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/sankey.rs Public functions: 1 Public structs: 1 use common_enums::AuthenticationStatus; use common_utils::{ errors::ParsingError, types::{authentication::AuthInfo, TimeRange}, }; use error_stack::ResultExt; use router_env::logger; use crate::{ clickhouse::Clickhous...
crates/analytics/src/auth_events/sankey.rs
analytics
full_file
626
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<T> SetGetReply<T> { pub fn get_value(&self) -> &T { match self { Self::ValueSet(value) => value, Self::ValueExists(value) => value, } } }
crates/redis_interface/src/types.rs
redis_interface
impl_block
50
rust
null
SetGetReply
null
impl SetGetReply
null
null
null
null
null
null
null
null
impl api::PaymentToken for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Breadpay
api::PaymentToken for
impl api::PaymentToken for for Breadpay
null
null
null
null
null
null
null
null
impl api::MandateSetup for Opennode {}
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
12
rust
null
Opennode
api::MandateSetup for
impl api::MandateSetup for for Opennode
null
null
null
null
null
null
null
null
impl api::RefundExecute for Worldpayxml {}
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpayxml
api::RefundExecute for
impl api::RefundExecute for for Worldpayxml
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Mpgs {}
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
10
rust
null
Mpgs
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Mpgs
null
null
null
null
null
null
null
null
File: crates/api_models/src/analytics/refunds.rs Public functions: 1 Public structs: 10 use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use common_utils::id_type; use crate::enums::{Currency, RefundStatus}; #[derive( Clone, Copy, Debug, Hash, Eq, PartialEq...
crates/api_models/src/analytics/refunds.rs
api_models
full_file
1,569
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Vault { #[instrument(skip_all)] pub async fn get_payment_method_data_from_locker( state: &routes::SessionState, lookup_key: &str, merchant_key_store: &domain::MerchantKeyStore, ) -> RouterResult<(Option<domain::PaymentMethodData>, SupplementaryVaultData)> { let de_tokeni...
crates/router/src/core/payment_methods/vault.rs
router
impl_block
986
rust
null
Vault
null
impl Vault
null
null
null
null
null
null
null
null
pub fn get_adyen_webhook_event( event_type: AdyenplatformWebhookEventType, status: AdyenplatformWebhookStatus, instant_status: Option<AdyenplatformInstantStatus>, category: Option<&AdyenPayoutMethod>, ) -> webhooks::IncomingWebhookEvent { match (event_type, status, instant_status) { (Adyenpl...
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
function_signature
408
rust
null
null
null
null
get_adyen_webhook_event
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/airwallex.rs Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use common_enums::{enums, CallConnectorAction, PaymentAction}; use common_utils::{ crypto, errors::CustomResult, ext_traits::{B...
crates/hyperswitch_connectors/src/connectors/airwallex.rs#chunk0
hyperswitch_connectors
chunk
8,178
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutLinkInitiateRequest { "type": "object", "required": [ "merchant_id", "payout_id" ], "properties": { "merchant_id": { "type": "string" }, "payout_id": { "type": "string" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
80
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutLinkInitiateRequest" ]
null
null
null
null
pub trait PaymentDistributionAccumulator { type DistributionOutput; fn add_distribution_bucket(&mut self, distribution: &PaymentDistributionRow); fn collect(self) -> Self::DistributionOutput; }
crates/analytics/src/payments/accumulator.rs
analytics
trait_definition
41
rust
null
null
PaymentDistributionAccumulator
null
null
null
null
null
null
null
null
null
pub struct NexinetsPaymentsMetadata { pub transaction_id: Option<String>, pub order_id: Option<String>, pub psync_flow: NexinetsTransactionType, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
NexinetsPaymentsMetadata
null
null
null
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: PaymentMethod) -> PaymentMethod { let Self { metadata, payment_method_data, last_used_at, network_transaction_id, status, locker_id, network_token_requestor_reference_id, payment_...
crates/diesel_models/src/payment_method.rs
diesel_models
function_signature
517
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
impl RequiredFieldsAndSurchargeForEnabledPaymentMethodTypes { fn populate_pm_subtype_specific_data( self, bank_config: &settings::BankRedirectConfig, ) -> RequiredFieldsAndSurchargeWithExtraInfoForEnabledPaymentMethodTypes { let response_payment_methods = self .0 ...
crates/router/src/core/payments/payment_methods.rs
router
impl_block
222
rust
null
RequiredFieldsAndSurchargeForEnabledPaymentMethodTypes
null
impl RequiredFieldsAndSurchargeForEnabledPaymentMethodTypes
null
null
null
null
null
null
null
null
impl crate::events::ApiEventMetric for GlobalPaymentMethodId { fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> { Some( crate::events::ApiEventsType::PaymentMethodListForPaymentMethods { payment_method_id: self.clone(), }, ) } }
crates/common_utils/src/id_type/global_id/payment_methods.rs
common_utils
impl_block
69
rust
null
GlobalPaymentMethodId
crate::events::ApiEventMetric for
impl crate::events::ApiEventMetric for for GlobalPaymentMethodId
null
null
null
null
null
null
null
null
pub async fn payments_get_intent_using_merchant_reference( state: SessionState, merchant_context: domain::MerchantContext, profile: domain::Profile, req_state: ReqState, merchant_reference_id: &id_type::PaymentReferenceId, header_payload: HeaderPayload, ) -> RouterResponse<api::PaymentsIntentRes...
crates/router/src/core/payments.rs
router
function_signature
381
rust
null
null
null
null
payments_get_intent_using_merchant_reference
null
null
null
null
null
null
null
impl State for CardTokenized {}
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
7
rust
null
CardTokenized
State for
impl State for for CardTokenized
null
null
null
null
null
null
null
null
File: crates/router/src/core/api_keys.rs Public functions: 14 Public structs: 2 use common_utils::date_time; #[cfg(feature = "email")] use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use error_stack::{report, ResultExt}; use masking::{PeekInterface, StrongSecret}; use router_env::{instrument, tracing}...
crates/router/src/core/api_keys.rs
router
full_file
4,702
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GrpcRecoveryHeaders { /// Request id pub request_id: Option<String>, }
crates/external_services/src/grpc_client/revenue_recovery.rs
external_services
struct_definition
22
rust
GrpcRecoveryHeaders
null
null
null
null
null
null
null
null
null
null
null
pub struct RetrieveCardResp { pub status: String, pub error_message: Option<String>, pub error_code: Option<String>, pub payload: Option<RetrieveCardRespPayload>, }
crates/router/src/core/payment_methods/transformers.rs
router
struct_definition
40
rust
RetrieveCardResp
null
null
null
null
null
null
null
null
null
null
null
pub fn construct_connector_invoke_hidden_frame( connector_three_ds_invoke_data: api_models::payments::PaymentsConnectorThreeDsInvokeData, ) -> RouterResult<api_models::payments::NextActionData> { let iframe_data = api_models::payments::IframeData::ThreedsInvokeAndCompleteAutorize { three_ds_method_data_...
crates/router/src/core/payments/transformers.rs
router
function_signature
170
rust
null
null
null
null
construct_connector_invoke_hidden_frame
null
null
null
null
null
null
null
pub fn is_separate_version_call_required(self) -> bool { match self { Self::Threedsecureio | Self::Netcetera | Self::CtpMastercard | Self::UnifiedAuthenticationService | Self::Juspaythreedsserver | Self::CtpVisa => false, Self::...
crates/common_enums/src/enums.rs
common_enums
function_signature
86
rust
null
null
null
null
is_separate_version_call_required
null
null
null
null
null
null
null
File: crates/payment_methods/src/core/errors.rs pub use common_utils::errors::{CustomResult, ParsingError, ValidationError}; pub use hyperswitch_domain_models::{ api, errors::api_error_response::{self, *}, }; pub type PmResult<T> = CustomResult<T, ApiErrorResponse>; pub type PmResponse<T> = CustomResult<api::...
crates/payment_methods/src/core/errors.rs
payment_methods
full_file
433
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct VoidResponse { response_code: AuthorizedotnetVoidStatus, #[serde(rename = "transId")] transaction_id: String, network_trans_id: Option<Secret<String>>, pub account_number: Option<Secret<String>>, pub errors: Option<Vec<ErrorMessage>>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
60
rust
VoidResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct DeleteCardToken { pub card_reference: String, //network token requestor ref id pub customer_id: id_type::GlobalCustomerId, }
crates/router/src/types/payment_methods.rs
router
struct_definition
33
rust
DeleteCardToken
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/poll/poll--retrieve-poll-status.mdx # Type: Doc File --- openapi: get /poll/status/{poll_id} ---
api-reference/v1/poll/poll--retrieve-poll-status.mdx
null
doc_file
37
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl fmt::Display for BokuRefundReasonCode { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Self::NonFulfillment => write!(f, "8"), } } }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
impl_block
57
rust
null
BokuRefundReasonCode
fmt::Display for
impl fmt::Display for for BokuRefundReasonCode
null
null
null
null
null
null
null
null
pub struct OpennodeRouterData<T> { pub amount: MinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
OpennodeRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct Level(pub(super) tracing::Level);
crates/router_env/src/logger/config.rs
router_env
struct_definition
10
rust
Level
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
9
rust
null
Katapult
api::Refund for
impl api::Refund for for Katapult
null
null
null
null
null
null
null
null
impl api::MandateSetup for Phonepe {}
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
impl_block
11
rust
null
Phonepe
api::MandateSetup for
impl api::MandateSetup for for Phonepe
null
null
null
null
null
null
null
null
pub struct SignifydPaymentsRecordReturnResponse { return_id: String, order_id: String, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
23
rust
SignifydPaymentsRecordReturnResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_payments( state: SessionState, merchant_context: domain::MerchantContext, constraints: api::PaymentListConstraints, ) -> RouterResponse<payments_api::PaymentListResponse> { common_utils::metrics::utils::record_operation_time( async { let limit = &constraints.limit; ...
crates/router/src/core/payments.rs
router
function_signature
584
rust
null
null
null
null
list_payments
null
null
null
null
null
null
null
File: crates/analytics/src/disputes/accumulators.rs Public functions: 1 Public structs: 3 use api_models::analytics::disputes::DisputeMetricsBucketValue; use diesel_models::enums as storage_enums; use super::metrics::DisputeMetricRow; #[derive(Debug, Default)] pub struct DisputeMetricsAccumulator { pub disputes...
crates/analytics/src/disputes/accumulators.rs
analytics
full_file
815
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
10
rust
null
Rapyd
api::Refund for
impl api::Refund for for Rapyd
null
null
null
null
null
null
null
null
File: crates/analytics/src/api_event/metrics.rs Public structs: 1 use api_models::analytics::{ api_event::{ ApiEventDimensions, ApiEventFilters, ApiEventMetrics, ApiEventMetricsBucketIdentifier, }, Granularity, TimeRange, }; use time::PrimitiveDateTime; use crate::{ query::{Aggregate, GroupBy...
crates/analytics/src/api_event/metrics.rs
analytics
full_file
702
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Globepay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&GLOBEPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*GLOBEPAY_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
112
rust
null
Globepay
ConnectorSpecifications for
impl ConnectorSpecifications for for Globepay
null
null
null
null
null
null
null
null
pub struct FlexitiErrorResponse { pub message: String, pub error: String, }
crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
FlexitiErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
9
rust
null
Dlocal
api::PaymentVoid for
impl api::PaymentVoid for for Dlocal
null
null
null
null
null
null
null
null
pub fn get_metadata_as_secret( &self, ) -> CustomResult<Option<pii::SecretSerdeValue>, errors::ParsingError> { self.metadata .as_ref() .map(|metadata| metadata.encode_to_value().map(Secret::new)) .transpose() }
crates/api_models/src/admin.rs
api_models
function_signature
63
rust
null
null
null
null
get_metadata_as_secret
null
null
null
null
null
null
null
pub struct EventContext<T, A> where A: MessagingInterface<MessageClass = T>, { message_sink: Arc<A>, metadata: HashMap<String, Value>, }
crates/events/src/lib.rs
events
struct_definition
37
rust
EventContext
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Razorpay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Razorpay
null
null
null
null
null
null
null
null
pub fn is_deletable(&self) -> bool { self.is_deletable }
crates/router/src/services/authorization/roles.rs
router
function_signature
21
rust
null
null
null
null
is_deletable
null
null
null
null
null
null
null
pub struct ApplePayPaymentInformation { tokenized_card: TokenizedCard, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ApplePayPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_initial_webhook_delivery_attempts( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, json_payload: web::Json<EventListConstraints>, ) -> impl Responder { let flow = Flow::WebhookEventInitialDeliveryAttemptList; let merchant_id = p...
crates/router/src/routes/webhook_events.rs
router
function_signature
240
rust
null
null
null
null
list_initial_webhook_delivery_attempts
null
null
null
null
null
null
null
pub trait DecisionEngineApiHandler { async fn send_decision_engine_request<Req, Res>( state: &SessionState, http_method: services::Method, path: &str, request_body: Option<Req>, // Option to handle GET/DELETE requests without body timeout: Option<u64>, events_wrapper:...
crates/router/src/core/payments/routing/utils.rs
router
trait_definition
134
rust
null
null
DecisionEngineApiHandler
null
null
null
null
null
null
null
null
null
pub struct GetSearchResponse { pub count: u64, pub index: SearchIndex, pub hits: Vec<Value>, pub status: SearchStatus, }
crates/api_models/src/analytics/search.rs
api_models
struct_definition
36
rust
GetSearchResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiRequest { merchant_transaction_id: String, payment_channel: ZenPaymentChannels, amount: String, currency: enums::Currency, payment_specific_data: ZenPaymentSpecificData, customer: ZenCustomerDetails, custom_ipn_url: String, items: Vec<ZenItemObject>, }
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
67
rust
ApiRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Authorization> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/authorization.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl OutgoingWebhookEventMetric for OutgoingWebhookContent { fn get_outgoing_webhook_event_content(&self) -> Option<OutgoingWebhookEventContent> { match self { Self::PaymentDetails(payment_payload) => Some(OutgoingWebhookEventContent::Payment { payment_id: payment_payload.payment...
crates/router/src/events/outgoing_webhook_logs.rs
router
impl_block
429
rust
null
OutgoingWebhookContent
OutgoingWebhookEventMetric for
impl OutgoingWebhookEventMetric for for OutgoingWebhookContent
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::fp_utils::when; when(self.jwt_secret.is_default_or_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( "JWT secret must not be empty".into(), )) })?; when(...
crates/router/src/configs/validations.rs
router
function_signature
142
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct BluecodeQrRedirect {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
8
rust
BluecodeQrRedirect
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/connector-account/connector-account--retrieve.mdx # Type: Doc File --- openapi: get /v2/connector-accounts/{id} ---
api-reference/v2/connector-account/connector-account--retrieve.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MultibancoTransferInstructions { "type": "object", "required": [ "reference", "entity" ], "properties": { "reference": { "type": "string", "example": "122385736258" }, "entity": { "type": "string", "example": "12345" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
102
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MultibancoTransferInstructions" ]
null
null
null
null
pub fn get_payment_methods_supporting_extended_authorization(self) -> HashSet<PaymentMethod> { HashSet::from([PaymentMethod::Card]) }
crates/common_enums/src/connector_enums.rs
common_enums
function_signature
31
rust
null
null
null
null
get_payment_methods_supporting_extended_authorization
null
null
null
null
null
null
null
pub struct PaymentDmnNotification { #[serde(rename = "PPP_TransactionID")] pub ppp_transaction_id: Option<String>, #[serde(rename = "TransactionID")] pub transaction_id: Option<String>, pub status: Option<DmnStatus>, #[serde(rename = "ErrCode")] pub err_code: Option<String>, #[serde(rena...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
348
rust
PaymentDmnNotification
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/configs/defaults/payout_required_fields.rs use std::collections::HashMap; use api_models::{ enums::{ CountryAlpha2, FieldType, PaymentMethod::{BankTransfer, Card, Wallet}, PaymentMethodType, PayoutConnectors, }, payment_methods::RequiredFieldInfo, }; use cr...
crates/router/src/configs/defaults/payout_required_fields.rs
router
full_file
3,361
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct VoidResponse { pub merchant_ref_num: Option<String>, pub id: String, pub status: PaysafeVoidStatus, }
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
VoidResponse
null
null
null
null
null
null
null
null
null
null
null
impl CardDetailUpdate { pub fn apply(&self, card_data_from_locker: Card) -> CardDetail { CardDetail { card_number: card_data_from_locker.card_number, card_exp_month: card_data_from_locker.card_exp_month, card_exp_year: card_data_from_locker.card_exp_year, card...
crates/api_models/src/payment_methods.rs
api_models
impl_block
170
rust
null
CardDetailUpdate
null
impl CardDetailUpdate
null
null
null
null
null
null
null
null
pub struct FiuuRecurringRequest { record_type: FiuuRecordType, merchant_id: Secret<String>, token: Secret<String>, order_id: String, currency: Currency, amount: StringMajorUnit, billing_name: Secret<String>, email: Email, verify_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
70
rust
FiuuRecurringRequest
null
null
null
null
null
null
null
null
null
null
null
impl ArchipelErrorMessageWithHttpCode { fn new(error_message: ArchipelErrorMessage, http_code: u16) -> Self { Self { error_message, http_code, } } }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
impl_block
44
rust
null
ArchipelErrorMessageWithHttpCode
null
impl ArchipelErrorMessageWithHttpCode
null
null
null
null
null
null
null
null
Documentation: docs/rfcs/000-issuing-template.md # Type: Doc File ## RFC 000: [Title] ### I. Objective A clear and concise title for the RFC ### II. Proposal A detailed description of the proposed changes, discussion time frame, technical details and potential drawbacks or alternative solutions that were considered ...
docs/rfcs/000-issuing-template.md
null
doc_file
122
doc
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PollResponse { "type": "object", "required": [ "poll_id", "status" ], "properties": { "poll_id": { "type": "string", "description": "The poll id" }, "status": { "$ref": "#/components/schemas/PollStatus" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
88
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PollResponse" ]
null
null
null
null
pub struct PaymentMethodDetails { /// Indicates whether mandates are supported by this payment method. pub mandates: common_enums::FeatureStatus, /// Indicates whether refund is supported by this payment method. pub refunds: common_enums::FeatureStatus, /// List of supported capture methods pub ...
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
struct_definition
101
rust
PaymentMethodDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDsMetaData { pub merchant_category_code: Option<MerchantCategoryCode>, pub merchant_country_code: Option<MerchantCountryCode>, pub merchant_name: Option<String>, pub endpoint_prefix: String, pub three_ds_requestor_name: Option<String>, pub three_ds_requestor_id: Option<String>, ...
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
77
rust
ThreeDsMetaData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankRedirectData { "oneOf": [ { "type": "object", "required": [ "bancontact_card" ], "properties": { "bancontact_card": { "type": "object", "required": [ "card_number", "card_exp_month", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
2,195
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankRedirectData" ]
null
null
null
null
pub async fn list_all_merchant_accounts( conn: &PgPooledConn, limit: u32, offset: Option<u32>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as Table>::PrimaryKey, _...
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
124
rust
null
null
null
null
list_all_merchant_accounts
null
null
null
null
null
null
null
pub struct PaymentMethodResponse { /// Unique identifier for a merchant #[schema(example = "merchant_1671528864", value_type = String)] pub merchant_id: id_type::MerchantId, /// The unique identifier of the customer. #[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
752
rust
PaymentMethodResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn is_success(&self) -> bool { matches!(self, Self::Success) }
crates/common_enums/src/enums.rs
common_enums
function_signature
21
rust
null
null
null
null
is_success
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut route = web::scope("/account/{account_id}/business_profile") .app_data(web::Data::new(state)) .service( web::resource("") .route(web::post().to(profiles::profile_create)) .route(web:...
crates/router/src/routes/app.rs
router
function_signature
666
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Refund> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/refund.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl std::ops::Deref for PaymentsMandateReference { type Target = HashMap<common_utils::id_type::MerchantConnectorAccountId, PaymentsMandateReferenceRecord>; fn deref(&self) -> &Self::Target { &self.0 } }
crates/diesel_models/src/payment_method.rs
diesel_models
impl_block
60
rust
null
PaymentsMandateReference
std::ops::Deref for
impl std::ops::Deref for for PaymentsMandateReference
null
null
null
null
null
null
null
null
impl ConnectorCommon for Breadpay { fn id(&self) -> &'static str { "breadpay" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor // TODO! Check connector documentation, on which unit they are processing the currency. // If the connector accep...
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
500
rust
null
Breadpay
ConnectorCommon for
impl ConnectorCommon for for Breadpay
null
null
null
null
null
null
null
null
pub async fn get_merchant_max_auto_retries_enabled( db: &dyn StorageInterface, merchant_id: &common_utils::id_type::MerchantId, ) -> Option<i32> { let key = merchant_id.get_max_auto_retries_enabled(); db.find_config_by_key(key.as_str()) .await .change_context(errors::ApiErrorResponse::I...
crates/router/src/core/payments/retry.rs
router
function_signature
164
rust
null
null
null
null
get_merchant_max_auto_retries_enabled
null
null
null
null
null
null
null
impl utils::ConnectorErrorTypeMapping for Trustpay { fn get_connector_error_type( &self, error_code: String, error_message: String, ) -> ConnectorErrorType { match (error_code.as_str(), error_message.as_str()) { // 2xx card api error codes and messages mapping ...
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
impl_block
1,730
rust
null
Trustpay
utils::ConnectorErrorTypeMapping for
impl utils::ConnectorErrorTypeMapping for for Trustpay
null
null
null
null
null
null
null
null
File: crates/common_utils/src/link_utils.rs Public functions: 2 Public structs: 4 //! This module has common utilities for links in HyperSwitch use std::{collections::HashSet, primitive::i64}; use common_enums::{enums, UIWidgetFormLayout}; use diesel::{ backend::Backend, deserialize, deserialize::FromS...
crates/common_utils/src/link_utils.rs
common_utils
full_file
2,918
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payouts_retrieve() {}
crates/openapi/src/routes/payouts.rs
openapi
function_signature
8
rust
null
null
null
null
payouts_retrieve
null
null
null
null
null
null
null
pub struct PaymentGetListAttempts;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
7
rust
PaymentGetListAttempts
null
null
null
null
null
null
null
null
null
null
null
pub struct RazorpayPaymentsRequest { amount: MinorUnit, currency: enums::Currency, order_id: String, email: Email, contact: Secret<String>, method: RazorpayPaymentMethod, upi: UpiDetails, #[serde(skip_serializing_if = "Option::is_none")] ip: Option<Secret<String, IpAddress>>, #[s...
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
100
rust
RazorpayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
/// Get string representation of the id pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() }
crates/common_utils/src/id_type/global_id/payment.rs
common_utils
function_signature
31
rust
null
null
null
null
get_string_repr
null
null
null
null
null
null
null
pub fn new( app_ip: Option<std::net::IpAddr>, psd2_sca_exemption_type: Option<common_enums::ScaExemptionType>, force_3ds_challenge: bool, message_version: SemanticVersion, ) -> Self { // if sca exemption is provided, we need to set the challenge indicator to NoChallengeReques...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
function_signature
304
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct XenditRefundRequest { pub amount: FloatMajorUnit, pub payment_request_id: String, pub reason: String, }
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
XenditRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
8
rust
null
Payload
api::PaymentSync for
impl api::PaymentSync for for Payload
null
null
null
null
null
null
null
null
pub fn get_capture_body( req: &BamboraapacRouterData<&types::PaymentsCaptureRouterData>, ) -> Result<Vec<u8>, Error> { let receipt = req.router_data.request.connector_transaction_id.to_owned(); let auth_details = BamboraapacAuthType::try_from(&req.router_data.connector_auth_type)?; let body = format!( ...
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
function_signature
265
rust
null
null
null
null
get_capture_body
null
null
null
null
null
null
null
pub async fn retrieve_routing_algorithm_from_algorithm_id( state: SessionState, merchant_context: domain::MerchantContext, authentication_profile_id: Option<common_utils::id_type::ProfileId>, algorithm_id: common_utils::id_type::RoutingId, ) -> RouterResponse<routing_types::MerchantRoutingAlgorithm> { ...
crates/router/src/core/routing.rs
router
function_signature
313
rust
null
null
null
null
retrieve_routing_algorithm_from_algorithm_id
null
null
null
null
null
null
null
pub struct ArchipelConfigData { pub tenant_id: ArchipelTenantId, pub platform_url: String, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
ArchipelConfigData
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/mollie.rs use router::types; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[allow(dead_code)] #[derive(Clone, Copy)] struct MollieTest; impl ConnectorActions for MollieTest {} impl utils::Connector for MollieTest { fn get_data(&self) -> types::api:...
crates/router/tests/connectors/mollie.rs
router
full_file
215
null
null
null
null
null
null
null
null
null
null
null
null
null