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 fn get_secret(self) -> Secret<String, pii::EmailStrategy> {
(*self.0).clone()
} | crates/router/src/types/domain/user.rs | router | function_signature | 26 | rust | null | null | null | null | get_secret | null | null | null | null | null | null | null |
pub struct MerchantAccountCreateWithoutOrgId {
/// Name of the Merchant Account, This will be used as a prefix to generate the id
#[schema(value_type= String, max_length = 64, example = "NewAge Retailer")]
pub merchant_name: Secret<common_utils::new_type::MerchantName>,
/// Details about the merchant, ... | crates/api_models/src/admin.rs | api_models | struct_definition | 189 | rust | MerchantAccountCreateWithoutOrgId | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GiftCardData
{
"oneOf": [
{
"type": "object",
"required": [
"givex"
],
"properties": {
"givex": {
"$ref": "#/components/schemas/GiftCardDetails"
}
}
},
{
"type": "object",
"required": [
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 182 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GiftCardData"
] | null | null | null | null |
impl api::PaymentSync for Wellsfargo {} | crates/hyperswitch_connectors/src/connectors/wellsfargo.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Wellsfargo | api::PaymentSync for | impl api::PaymentSync for for Wellsfargo | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Opayo {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))
... | crates/hyperswitch_connectors/src/connectors/opayo.rs | hyperswitch_connectors | impl_block | 210 | rust | null | Opayo | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Opayo | null | null | null | null | null | null | null | null |
pub struct FileUploadResponse {
#[serde(rename = "id")]
pub file_id: String,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | FileUploadResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes.rs
pub mod admin;
pub mod api_keys;
pub mod app;
#[cfg(feature = "v1")]
pub mod apple_pay_certificates_migration;
pub mod authentication;
#[cfg(all(feature = "olap", feature = "v1"))]
pub mod blocklist;
pub mod cache;
pub mod cards_info;
pub mod configs;
#[cfg(feature = "olap")]
pub mod ... | crates/router/src/routes.rs | router | full_file | 801 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ProfileCreate
{
"type": "object",
"properties": {
"profile_name": {
"type": "string",
"description": "The name of profile",
"nullable": true,
"maxLength": 64
},
"return_url": {
"type": "string",
"description": "The URL to redirec... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 2,128 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ProfileCreate"
] | null | null | null | null |
pub struct MerchantConnectorAccountNew {
pub merchant_id: Option<id_type::MerchantId>,
pub connector_type: Option<storage_enums::ConnectorType>,
pub connector_name: Option<common_enums::connector_enums::Connector>,
pub connector_account_details: Option<Encryption>,
pub disabled: Option<bool>,
#[... | crates/diesel_models/src/merchant_connector_account.rs | diesel_models | struct_definition | 331 | rust | MerchantConnectorAccountNew | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Nmi {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&NMI_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*NMI_SUPPORTED_PAYMENT_METHODS)
}
fn get_supported_webhoo... | crates/hyperswitch_connectors/src/connectors/nmi.rs | hyperswitch_connectors | impl_block | 105 | rust | null | Nmi | ConnectorSpecifications for | impl ConnectorSpecifications for for Nmi | null | null | null | null | null | null | null | null |
pub fn to_display_name(&self) -> String {
let display_name = match self {
Self::Ach => "ACH Direct Debit",
Self::Bacs => "BACS Direct Debit",
Self::Affirm => "Affirm",
Self::AfterpayClearpay => "Afterpay Clearpay",
Self::Alfamart => "Alfamart",
... | crates/common_enums/src/enums.rs | common_enums | function_signature | 1,320 | rust | null | null | null | null | to_display_name | null | null | null | null | null | null | null |
pub struct WorldpayConnectorMetadataObject {
pub merchant_name: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | WorldpayConnectorMetadataObject | null | null | null | null | null | null | null | null | null | null | null |
pub struct Address {
address_line_1: Option<Secret<String>>,
postal_code: Option<Secret<String>>,
country_code: enums::CountryAlpha2,
admin_area_2: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | Address | null | null | null | null | null | null | null | null | null | null | null |
impl<R> ApplicationResponse<R> {
/// Get the json response from response
#[inline]
pub fn get_json_body(
self,
) -> common_utils::errors::CustomResult<R, common_utils::errors::ValidationError> {
match self {
Self::Json(body) | Self::JsonWithHeaders((body, _)) => Ok(body),
... | crates/hyperswitch_domain_models/src/api.rs | hyperswitch_domain_models | impl_block | 171 | rust | null | ApplicationResponse | null | impl ApplicationResponse | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/query/utils.rs
use diesel;
use crate::{schema, schema_v2};
/// This trait will return a single column as primary key even in case of composite primary key.
///
/// In case of composite key, it will return the column that is used as local unique.
pub(super) trait GetPrimaryKey: diesel::... | crates/diesel_models/src/query/utils.rs | diesel_models | full_file | 1,223 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Checkout {} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Checkout | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Checkout | null | null | null | null | null | null | null | null |
File: crates/openapi/src/routes/organization.rs
Public functions: 7
#[cfg(feature = "v1")]
/// Organization - Create
///
/// Create a new organization
#[utoipa::path(
post,
path = "/organization",
request_body(
content = OrganizationCreateRequest,
examples(
(
"C... | crates/openapi/src/routes/organization.rs | openapi | full_file | 1,112 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn insert_merchant_configs(
db: &dyn StorageInterface,
merchant_id: &id_type::MerchantId,
) -> RouterResult<()> {
db.insert_config(configs::ConfigNew {
key: merchant_id.get_requires_cvv_key(),
config: "true".to_string(),
})
.await
.change_context(errors::ApiErrorRespons... | crates/router/src/core/admin.rs | router | function_signature | 172 | rust | null | null | null | null | insert_merchant_configs | null | null | null | null | null | null | null |
merchant_context.get_merchant_account().storage_scheme,
)
.await
.to_not_found_response(errors::ApiErrorResponse::RefundNotFound)?;
Box::pin(refund_retrieve_core(
state.clone(),
merchant_context,
profile_id,
request,
refund,
))
.aw... | crates/router/src/core/refunds.rs#chunk1 | router | chunk | 4,687 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Self, errors::ConnectorError> {
let webhook_body: Self = body
.parse_struct::<Self>("StripebillingWebhookBody")
.change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?;
Ok(webhook_body)
} | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | function_signature | 71 | rust | null | null | null | null | get_webhook_object_from_body | null | null | null | null | null | null | null |
impl DatabaseStore for ReplicaStore {
type Config = (Database, Database);
async fn new(
config: (Database, Database),
tenant_config: &dyn TenantConfig,
test_transaction: bool,
) -> StorageResult<Self> {
let (master_config, replica_config) = config;
let master_pool =
... | crates/storage_impl/src/database/store.rs | storage_impl | impl_block | 363 | rust | null | ReplicaStore | DatabaseStore for | impl DatabaseStore for for ReplicaStore | null | null | null | null | null | null | null | null |
pub struct GetnetPaymentsRequest {
payment: PaymentData,
} | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | GetnetPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Mollie {} | crates/hyperswitch_connectors/src/connectors/mollie.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mollie | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Mollie | null | null | null | null | null | null | null | null |
Documentation: postman/README.md
# Type: Doc File
# Postman Collection
This directory contains the Postman collection for all Hyperswitch supported connectors and this documentation talks about how to build the collection.
## Development of collections
### Prerequisites
- [Postman](https://www.postman.com/download... | postman/README.md | null | doc_file | 648 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/payment_methods.rs
Public functions: 39
Public structs: 2
use ::payment_methods::{
controller::PaymentMethodsController,
core::{migration, migration::payment_methods::migrate_payment_method},
};
#[cfg(all(feature = "v1", any(feature = "olap", feature = "oltp")))]
use actix_mult... | crates/router/src/routes/payment_methods.rs#chunk0 | router | chunk | 8,169 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaypalPaymentErrorResponse {
pub name: Option<String>,
pub message: String,
pub debug_id: Option<String>,
pub details: Option<Vec<ErrorDetails>>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | PaypalPaymentErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Taxjar {} | crates/hyperswitch_connectors/src/connectors/taxjar.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Taxjar | api::MandateSetup for | impl api::MandateSetup for for Taxjar | null | null | null | null | null | null | null | null |
Web Documentation: Cost Observability | Hyperswitch
# Type: Web Doc
Enterprises often face challenges and find difficulty in understanding and managing their payment processing costs, due to complexity, variability of the underlying fee structures and the entities involved. These fees typically consist of:
Interchange... | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/ai-powered-cost-observability | null | web_doc_file | 460 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/ai-powered-cost-observability | Cost Observability | Hyperswitch | null |
pub struct DisputeRetrieveBody {
/// Decider to enable or disable the connector call for dispute retrieve request
pub force_sync: Option<bool>,
} | crates/api_models/src/disputes.rs | api_models | struct_definition | 32 | rust | DisputeRetrieveBody | null | null | null | null | null | null | null | null | null | null | null |
impl<K, V> DenseMap<K, V> {
pub fn new() -> Self {
Self {
data: Vec::new(),
_marker: PhantomData,
}
}
} | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | impl_block | 42 | rust | null | DenseMap | null | impl DenseMap | null | null | null | null | null | null | null | null |
pub struct EncryptDataResponse {
pub data: EncryptedData,
} | crates/common_utils/src/types/keymanager.rs | common_utils | struct_definition | 15 | rust | EncryptDataResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentReject; | crates/router/src/core/payments/operations/payment_reject.rs | router | struct_definition | 5 | rust | PaymentReject | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_network_transaction_id_flow(
state: &SessionState,
is_connector_agnostic_mit_enabled: Option<bool>,
connector: enums::Connector,
payment_method_info: &domain::PaymentMethod,
) -> bool {
let ntid_supported_connectors = &state
.conf
.network_transaction_id_supported_connector... | crates/router/src/core/payments.rs | router | function_signature | 134 | rust | null | null | null | null | is_network_transaction_id_flow | null | null | null | null | null | null | null |
pub fn get_email(&self) -> UserResult<domain::UserEmail> {
pii::Email::try_from(self.email.clone())
.change_context(UserErrors::InternalServerError)
.and_then(domain::UserEmail::from_pii_email)
} | crates/router/src/services/email/types.rs | router | function_signature | 53 | rust | null | null | null | null | get_email | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ReconStatus
{
"type": "string",
"enum": [
"not_requested",
"requested",
"active",
"disabled"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 45 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ReconStatus"
] | null | null | null | null |
pub fn get_additional_amount(&self) -> MinorUnit {
self.get_total_amount() - self.get_order_amount()
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 26 | rust | null | null | null | null | get_additional_amount | null | null | null | null | null | null | null |
pub struct PaymentsSuccessRateAccumulator {
pub success: u32,
pub success_without_retries: u32,
pub total: u32,
} | crates/analytics/src/payment_intents/accumulator.rs | analytics | struct_definition | 37 | rust | PaymentsSuccessRateAccumulator | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GsmDeleteResponse
{
"type": "object",
"required": [
"gsm_rule_delete",
"connector",
"flow",
"sub_flow",
"code"
],
"properties": {
"gsm_rule_delete": {
"type": "boolean"
},
"connector": {
"type": "string",
"description": "Th... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 197 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GsmDeleteResponse"
] | null | null | null | null |
pub struct Customer {
pub billing_address: BillingAddress,
pub contact_details: Option<ContactDetails>,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | Customer | null | null | null | null | null | null | null | null | null | null | null |
pub struct MerchantAccountResponse {
/// The identifier for the Merchant Account
#[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)]
pub id: id_type::MerchantId,
/// Name of the Merchant Account
#[schema(value_type = String,example = "NewAge Retailer")]
pub m... | crates/api_models/src/admin.rs | api_models | struct_definition | 388 | rust | MerchantAccountResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct SamsungPayTokenizedCard {
transaction_type: TransactionType,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | SamsungPayTokenizedCard | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthenticationUpdateInternal {
pub connector_authentication_id: Option<String>,
// pub authentication_data: Option<serde_json::Value>,
pub payment_method_id: Option<String>,
pub authentication_type: Option<common_enums::DecoupledAuthenticationType>,
pub authentication_status: Option<commo... | crates/diesel_models/src/authentication.rs | diesel_models | struct_definition | 456 | rust | AuthenticationUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
pub async fn generate_org_authentication_report(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<ReportRequest>,
) -> impl Responder {
let flow = AnalyticsFlow::GenerateAuthenticationReport;
Box::pin(api::server_wrap(
flow,
... | crates/router/src/analytics.rs | router | function_signature | 338 | rust | null | null | null | null | generate_org_authentication_report | null | null | null | null | null | null | null |
pub async fn upsert_surcharge_decision_config(
_state: SessionState,
_merchant_context: domain::MerchantContext,
_request: SurchargeDecisionConfigReq,
) -> RouterResponse<SurchargeDecisionManagerRecord> {
todo!();
} | crates/router/src/core/surcharge_decision_config.rs | router | function_signature | 54 | rust | null | null | null | null | upsert_surcharge_decision_config | null | null | null | null | null | null | null |
impl DrainerSettings {
pub fn validate(&self) -> Result<(), ApplicationError> {
common_utils::fp_utils::when(self.stream_name.is_default_or_empty(), || {
Err(ApplicationError::InvalidConfigurationValueError(
"drainer stream name must not be empty".into(),
))
}... | crates/scheduler/src/settings.rs | scheduler | impl_block | 67 | rust | null | DrainerSettings | null | impl DrainerSettings | null | null | null | null | null | null | null | null |
impl ChatErrors {
pub fn get_error_message(&self) -> String {
match self {
Self::InternalServerError => "Something went wrong".to_string(),
Self::MissingConfigError => "Missing webhook url".to_string(),
Self::ChatResponseDeserializationFailed => "Failed to parse chat resp... | crates/router/src/core/errors/chat.rs | router | impl_block | 72 | rust | null | ChatErrors | null | impl ChatErrors | null | null | null | null | null | null | null | null |
pub struct AciCaptureResponse {
id: String,
referenced_id: String,
payment_type: AciPaymentType,
amount: StringMajorUnit,
currency: String,
descriptor: String,
result: AciCaptureResult,
result_details: AciCaptureResultDetails,
build_number: String,
timestamp: String,
ndc: Sec... | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 99 | rust | AciCaptureResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn trigger_payments_webhook<F, Op, D>(
merchant_context: domain::MerchantContext,
business_profile: domain::Profile,
payment_data: D,
customer: Option<domain::Customer>,
state: &SessionState,
operation: Op,
) -> RouterResult<()>
where
F: Send + Clone + Sync,
Op: Debug,
D: p... | crates/router/src/utils.rs | router | function_signature | 547 | rust | null | null | null | null | trigger_payments_webhook | null | null | null | null | null | null | null |
pub struct FraudCheckUpdateInternal {
frm_status: Option<FraudCheckStatus>,
frm_transaction_id: Option<String>,
frm_reason: Option<serde_json::Value>,
frm_score: Option<i32>,
frm_error: Option<Option<String>>,
metadata: Option<serde_json::Value>,
last_step: FraudCheckLastStep,
payment_ca... | crates/diesel_models/src/fraud_check.rs | diesel_models | struct_definition | 87 | rust | FraudCheckUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
pub struct HyperwalletPaymentsResponse {
status: HyperwalletPaymentStatus,
id: String,
} | crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | HyperwalletPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/storage_impl/src/mock_db.rs
Public functions: 5
Public structs: 1
use std::sync::Arc;
use common_utils::{errors::CustomResult, types::keymanager::KeyManagerState};
use diesel_models as store;
use error_stack::ResultExt;
use futures::lock::{Mutex, MutexGuard};
use hyperswitch_domain_models::{
behavi... | crates/storage_impl/src/mock_db.rs | storage_impl | full_file | 2,040 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct MpgsAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | MpgsAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct NetworkTokenDetailsResponse {
/// Network token generated against the Card Number
#[schema(value_type = String)]
pub network_token: cards::NetworkToken,
/// Expiry month of the network token
#[schema(value_type = String)]
pub network_token_exp_month: masking::Secret<String>,
///... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 342 | rust | NetworkTokenDetailsResponse | null | null | null | null | null | null | null | null | null | null | null |
impl MerchantAccount {
pub fn get_compatible_connector(&self) -> Option<api_models::enums::Connector> {
let metadata: Option<api_models::admin::MerchantAccountMetadata> =
self.metadata.as_ref().and_then(|meta| {
meta.clone()
.parse_value("MerchantAccountMetada... | crates/hyperswitch_domain_models/src/merchant_account.rs | hyperswitch_domain_models | impl_block | 104 | rust | null | MerchantAccount | null | impl MerchantAccount | null | null | null | null | null | null | null | null |
pub struct AuthipayRouterData<T> {
pub amount: FloatMajorUnit, // Amount in major units (e.g., dollars instead of cents)
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 39 | rust | AuthipayRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub struct FieldMeta {
_meta_type: Ident,
pub value: Ident,
} | crates/router_derive/src/macros/to_encryptable.rs | router_derive | struct_definition | 19 | rust | FieldMeta | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Deutschebank {} | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Deutschebank | api::PaymentSync for | impl api::PaymentSync for for Deutschebank | null | null | null | null | null | null | null | null |
pub struct BluesnapAuthErrorResponse {
pub error_code: String,
pub error_description: String,
pub error_name: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | BluesnapAuthErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentCaptureData<F>
where
F: Clone,
{
pub flow: PhantomData<F>,
pub payment_intent: PaymentIntent,
pub payment_attempt: PaymentAttempt,
} | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | struct_definition | 40 | rust | PaymentCaptureData | null | null | null | null | null | null | null | null | null | null | null |
/// fn is_connector_timeout
pub fn is_connector_timeout(&self) -> bool {
self == &Self::RequestTimeoutReceived
} | crates/hyperswitch_interfaces/src/errors.rs | hyperswitch_interfaces | function_signature | 30 | rust | null | null | null | null | is_connector_timeout | null | null | null | null | null | null | null |
impl api::PaymentVoid for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Paypal | api::PaymentVoid for | impl api::PaymentVoid for for Paypal | null | null | null | null | null | null | null | null |
impl CardInfo {
pub async fn find_by_iin(conn: &PgPooledConn, card_iin: &str) -> StorageResult<Option<Self>> {
generics::generic_find_by_id_optional::<<Self as HasTable>::Table, _, _>(
conn,
card_iin.to_owned(),
)
.await
}
pub async fn insert(self, conn: &PgPo... | crates/diesel_models/src/query/cards_info.rs | diesel_models | impl_block | 234 | rust | null | CardInfo | null | impl CardInfo | null | null | null | null | null | null | null | null |
let transaction_data = core_routing::PaymentsDslInput::new(
payment_data.get_setup_mandate(),
payment_data.get_payment_attempt(),
payment_data.get_payment_intent(),
payment_data.get_payment_method_data(),
payment_data.get_addres... | crates/router/src/core/payments.rs#chunk8 | router | chunk | 8,185 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl HashiCorpVaultConfig {
/// Verifies that the [`HashiCorpVault`] configuration is usable.
pub fn validate(&self) -> Result<(), &'static str> {
when(self.url.is_default_or_empty(), || {
Err("HashiCorp vault url must not be empty")
})?;
when(self.token.is_default_or_empty(... | crates/external_services/src/hashicorp_vault/core.rs | external_services | impl_block | 94 | rust | null | HashiCorpVaultConfig | null | impl HashiCorpVaultConfig | null | null | null | null | null | null | null | null |
pub fn get_connector_name_as_string(&self) -> String {
self.connector_name.clone().to_string()
} | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | function_signature | 24 | rust | null | null | null | null | get_connector_name_as_string | null | null | null | null | null | null | null |
pub async fn diesel_make_pg_pool(
database: &Database,
schema: &str,
test_transaction: bool,
) -> StorageResult<PgPool> {
let database_url = database.get_database_url(schema);
let manager = async_bb8_diesel::ConnectionManager::<PgConnection>::new(database_url);
let mut pool = bb8::Pool::builder(... | crates/storage_impl/src/database/store.rs | storage_impl | function_signature | 190 | rust | null | null | null | null | diesel_make_pg_pool | null | null | null | null | null | null | null |
pub struct RefundFiltersResponse {
pub query_data: Vec<RefundFilterValue>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 20 | rust | RefundFiltersResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Square {} | crates/hyperswitch_connectors/src/connectors/square.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Square | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Square | null | null | null | null | null | null | null | null |
pub struct TransactionFee {
/// Monetary amount
pub amount: InstructedAmount,
pub description: Option<String>,
pub excluded_from_total_fee: Option<bool>,
pub percentage: Option<bool>,
#[serde(rename = "type")]
pub fees_type: Option<FeesType>,
} | crates/hyperswitch_connectors/src/connectors/nordea/responses.rs | hyperswitch_connectors | struct_definition | 62 | rust | TransactionFee | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_capture_by_capture_id(&self, capture_id: String) -> Option<&storage::Capture> {
self.all_captures.get(&capture_id)
} | crates/router/src/core/payments/types.rs | router | function_signature | 36 | rust | null | null | null | null | get_capture_by_capture_id | null | null | null | null | null | null | null |
File: crates/router/src/core/three_ds_decision_rule/utils.rs
Public functions: 1
use api_models::three_ds_decision_rule as api_threedsecure;
use common_types::three_ds_decision_rule_engine::ThreeDSDecision;
use euclid::backend::inputs as dsl_inputs;
use crate::{consts::PSD2_COUNTRIES, types::transformers::ForeignFro... | crates/router/src/core/three_ds_decision_rule/utils.rs | router | full_file | 986 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Refund for Riskified {} | crates/hyperswitch_connectors/src/connectors/riskified.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Riskified | Refund for | impl Refund for for Riskified | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ValueType
{
"oneOf": [
{
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"type": "string",
"enum": [
"number"
]
},
"value": {
"typ... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 892 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ValueType"
] | null | null | null | null |
impl RequiredFieldsInput {
fn new(
required_fields_config: settings::RequiredFields,
setup_future_usage: common_enums::FutureUsage,
) -> Self {
Self {
required_fields_config,
setup_future_usage,
}
}
} | crates/router/src/core/payments/payment_methods.rs | router | impl_block | 54 | rust | null | RequiredFieldsInput | null | impl RequiredFieldsInput | null | null | null | null | null | null | null | null |
impl api::Refund for Coinbase {} | crates/hyperswitch_connectors/src/connectors/coinbase.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Coinbase | api::Refund for | impl api::Refund for for Coinbase | null | null | null | null | null | null | null | null |
pub struct ThreedsecureioRouterData<T> {
pub amount: String,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | ThreedsecureioRouterData | null | null | null | null | null | null | null | null | null | null | null |
impl api::PayoutSync for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Nomupay | api::PayoutSync for | impl api::PayoutSync for for Nomupay | null | null | null | null | null | null | null | null |
impl api::Refund for Bitpay {} | crates/hyperswitch_connectors/src/connectors/bitpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Bitpay | api::Refund for | impl api::Refund for for Bitpay | null | null | null | null | null | null | null | null |
pub async fn get_metrics(
pool: &AnalyticsProvider,
auth: &AuthInfo,
req: GetDisputeMetricRequest,
) -> AnalyticsResult<DisputesMetricsResponse<DisputeMetricsBucketResponse>> {
let mut metrics_accumulator: HashMap<
DisputeMetricsBucketIdentifier,
DisputeMetricsAccumulator,
> = HashMa... | crates/analytics/src/disputes/core.rs | analytics | function_signature | 828 | rust | null | null | null | null | get_metrics | null | null | null | null | null | null | null |
File: crates/router/src/core/pm_auth/helpers.rs
Public functions: 1
use common_utils::ext_traits::ValueExt;
use error_stack::ResultExt;
use pm_auth::types::{self as pm_auth_types, api::BoxedPaymentAuthConnector};
use crate::{
core::errors::{self, ApiErrorResponse},
types::{self, domain, transformers::Foreign... | crates/router/src/core/pm_auth/helpers.rs | router | full_file | 285 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardNetworkTokenizeResponse {
/// Response for payment method entry in DB
pub payment_method_response: Option<PaymentMethodResponse>,
/// Customer details
#[schema(value_type = CustomerDetails)]
pub customer: Option<payments::CustomerDetails>,
/// Card network tokenization status
... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 167 | rust | CardNetworkTokenizeResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/custombilling.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct DynamicDescriptor {
pub merchant_name: String,
pub merchant_city: String,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | DynamicDescriptor | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.CardAdditionalData
{
"type": "object",
"description": "Masked payout method details for card payout method",
"required": [
"card_exp_month",
"card_exp_year",
"card_holder_name"
],
"properties": {
"card_issuer": {
"type": "string",
"description... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 455 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"CardAdditionalData"
] | null | null | null | null |
pub fn to_merchant_connector_info(&self, connector_label: &String) -> MerchantConnectorInfo {
MerchantConnectorInfo {
connector_label: connector_label.to_string(),
merchant_connector_id: self.id.clone(),
}
} | crates/api_models/src/admin.rs | api_models | function_signature | 48 | rust | null | null | null | null | to_merchant_connector_info | null | null | null | null | null | null | null |
pub struct Card {
number: cards::CardNumber,
expiration_month: Secret<String>,
expiration_year: Secret<String>,
security_code: Secret<String>,
#[serde(rename = "type")]
card_type: Option<String>,
type_selection_indicator: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 57 | rust | Card | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_customer_payment_method_api() {} | crates/openapi/src/routes/payment_method.rs | openapi | function_signature | 10 | rust | null | null | null | null | list_customer_payment_method_api | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Datatrans {} | crates/hyperswitch_connectors/src/connectors/datatrans.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Datatrans | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Datatrans | null | null | null | null | null | null | null | null |
pub struct Redirect {
pub redirect_url: Option<Url>,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | Redirect | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payments_session_operation_core<F, Req, Op, FData, D>(
state: &SessionState,
req_state: ReqState,
merchant_context: domain::MerchantContext,
profile: domain::Profile,
operation: Op,
req: Req,
payment_id: id_type::GlobalPaymentId,
_call_connector_action: CallConnectorAction,
... | crates/router/src/core/payments/session_operation.rs | router | function_signature | 781 | rust | null | null | null | null | payments_session_operation_core | null | null | null | null | null | null | null |
pub struct RefundResponse {
payment: RefundResponseData,
} | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundCount; | crates/api_models/src/analytics/refunds.rs | api_models | struct_definition | 6 | rust | RefundCount | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> Self {
Self {
object: "list",
data: vec![],
has_more: false,
total_count: 0,
url: "http://placeholder".to_string(),
}
} | crates/router/src/compatibility/stripe/payment_intents/types.rs | router | function_signature | 50 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct NoonConfiguration {
tokenize_c_c: Option<bool>,
payment_action: NoonPaymentActions,
return_url: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | NoonConfiguration | null | null | null | null | null | null | null | null | null | null | null |
impl SecretsManagementConfig {
/// Verifies that the client configuration is usable
pub fn validate(&self) -> Result<(), &'static str> {
match self {
#[cfg(feature = "aws_kms")]
Self::AwsKms { aws_kms } => aws_kms.validate(),
#[cfg(feature = "hashicorp-vault")]
... | crates/external_services/src/managers/secrets_management.rs | external_services | impl_block | 302 | rust | null | SecretsManagementConfig | null | impl SecretsManagementConfig | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AdyenTestingData
{
"type": "object",
"required": [
"holder_name"
],
"properties": {
"holder_name": {
"type": "string",
"description": "Holder name to be sent to Adyen for a card payment(CIT) or a generic payment(MIT). This value overrides the values for... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 104 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AdyenTestingData"
] | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
Public structs: 10
use std::collections::HashMap;
use common_enums::{enums, Currency};
use common_utils::{ext_traits::OptionExt, pii, request::Method, types::StringMajorUnit};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
... | crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | hyperswitch_connectors | full_file | 2,638 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/currency_conversion/src/lib.rs
pub mod conversion;
pub mod error;
pub mod types;
| crates/currency_conversion/src/lib.rs | currency_conversion | full_file | 22 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for ConnectorEnum {
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
match self {
Self::Old(connector) => connector.get_supported_payment_methods(),
Self::New(connector) => connector.get_supported_payment_methods(),
... | crates/hyperswitch_interfaces/src/connector_integration_interface.rs | hyperswitch_interfaces | impl_block | 538 | rust | null | ConnectorEnum | ConnectorSpecifications for | impl ConnectorSpecifications for for ConnectorEnum | null | null | null | null | null | null | null | null |
impl api::Payment for Opayo {} | crates/hyperswitch_connectors/src/connectors/opayo.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Opayo | api::Payment for | impl api::Payment for for Opayo | null | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.