text string | file_path string | module string | type string | tokens int64 | language string | struct_name string | type_name string | trait_name string | impl_type string | function_name string | source string | section string | keys list | macro_type string | url string | title string | chunk_index int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
File: crates/hyperswitch_connectors/src/connectors/hipay.rs
Public functions: 2
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::{enums, CaptureMethod, PaymentMethod, PaymentMethodType};
use common_utils::{
consts::BASE64_ENGINE,
errors::{self as common_... | crates/hyperswitch_connectors/src/connectors/hipay.rs | hyperswitch_connectors | full_file | 6,499 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ExchangeTokenCreateRequest {
pub public_token: String,
pub client_secret: Option<String>,
pub payment_id: id_type::PaymentId,
pub payment_method: PaymentMethod,
pub payment_method_type: PaymentMethodType,
} | crates/api_models/src/pm_auth.rs | api_models | struct_definition | 52 | rust | ExchangeTokenCreateRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct DebitRoutingDecisionData {
pub card_network: common_enums::enums::CardNetwork,
pub debit_routing_result: Option<open_router::DebitRoutingOutput>,
} | crates/router/src/core/routing/helpers.rs | router | struct_definition | 39 | rust | DebitRoutingDecisionData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/refunds/metrics/sessionized_metrics/refund_reason.rs
use std::collections::HashSet;
use api_models::analytics::{
refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultEx... | crates/analytics/src/refunds/metrics/sessionized_metrics/refund_reason.rs | analytics | full_file | 1,228 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/paysafe.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
consts,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestB... | crates/hyperswitch_connectors/src/connectors/paysafe.rs | hyperswitch_connectors | full_file | 6,870 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Refund for Payone {} | crates/hyperswitch_connectors/src/connectors/payone.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Payone | Refund for | impl Refund for for Payone | null | null | null | null | null | null | null | null |
pub struct PmTokenized; | crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs | router | struct_definition | 7 | rust | PmTokenized | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Worldpayxml {} | crates/hyperswitch_connectors/src/connectors/worldpayxml.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Worldpayxml | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Worldpayxml | null | null | null | null | null | null | null | null |
pub struct TrustpayGooglePayResponse {
pub merchant_info: GooglePayMerchantInfo,
pub allowed_payment_methods: Vec<GooglePayAllowedPaymentMethods>,
pub transaction_info: GooglePayTransactionInfo,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 43 | rust | TrustpayGooglePayResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Capture {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
pub cnp_txn_id: String,
pub amount: MinorUnit,
} | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | struct_definition | 51 | rust | Capture | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Fiuu {} | crates/hyperswitch_connectors/src/connectors/fiuu.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Fiuu | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Fiuu | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Cybersource {} | crates/hyperswitch_connectors/src/connectors/cybersource.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Cybersource | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Cybersource | null | null | null | null | null | null | null | null |
pub struct SamsungPayPaymentInformation {
fluid_data: FluidData,
tokenized_card: SamsungPayTokenizedCard,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | SamsungPayPaymentInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct WeChatPay {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 6 | rust | WeChatPay | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_profile_acquirer_config(
state: SessionState,
profile_id: common_utils::id_type::ProfileId,
profile_acquirer_id: common_utils::id_type::ProfileAcquirerId,
request: profile_acquirer::ProfileAcquirerUpdate,
merchant_context: domain::MerchantContext,
) -> RouterResponse<profile_acqu... | crates/router/src/core/profile_acquirer.rs | router | function_signature | 902 | rust | null | null | null | null | update_profile_acquirer_config | null | null | null | null | null | null | null |
RequestBuilder::new()
.method(Method::Get)
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
.attach_default_headers()
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
.set_body(types::RefundSyncT... | crates/hyperswitch_connectors/src/connectors/barclaycard.rs#chunk1 | hyperswitch_connectors | chunk | 2,319 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/customers").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
route = route
.service(
web::resource("/{customer_id}/mandates")
.route(web::get... | crates/router/src/routes/app.rs | router | function_signature | 310 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub async fn perform_surcharge_decision_management_for_session_flow(
state: &SessionState,
algorithm_ref: routing::RoutingAlgorithmRef,
payment_attempt: &storage::PaymentAttempt,
payment_intent: &storage::PaymentIntent,
billing_address: Option<hyperswitch_domain_models::address::Address>,
paymen... | crates/router/src/core/payment_methods/surcharge_decision_configs.rs | router | function_signature | 415 | rust | null | null | null | null | perform_surcharge_decision_management_for_session_flow | null | null | null | null | null | null | null |
pub async fn payouts_create() {} | crates/openapi/src/routes/payouts.rs | openapi | function_signature | 7 | rust | null | null | null | null | payouts_create | null | null | null | null | null | null | null |
impl ConnectorCommon for Payme {
fn id(&self) -> &'static str {
"payme"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &'a C... | crates/hyperswitch_connectors/src/connectors/payme.rs | hyperswitch_connectors | impl_block | 440 | rust | null | Payme | ConnectorCommon for | impl ConnectorCommon for for Payme | null | null | null | null | null | null | null | null |
impl UploadFile for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 6 | rust | null | Stripe | UploadFile for | impl UploadFile for for Stripe | null | null | null | null | null | null | null | null |
impl SurchargeCalculationOverride {
pub fn as_bool(self) -> bool {
match self {
Self::Skip => false,
Self::Calculate => true,
}
}
} | crates/common_enums/src/enums.rs | common_enums | impl_block | 40 | rust | null | SurchargeCalculationOverride | null | impl SurchargeCalculationOverride | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Noon {} | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Noon | api::MandateSetup for | impl api::MandateSetup for for Noon | null | null | null | null | null | null | null | null |
pub struct PlaidLinkTokenResponse {
link_token: String,
} | crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | PlaidLinkTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenReference {
pub field: String,
} | crates/router/src/core/proxy/utils.rs | router | struct_definition | 12 | rust | TokenReference | null | null | null | null | null | null | null | null | null | null | null |
pub struct SurchargePercentage {
percentage: f32,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 14 | rust | SurchargePercentage | null | null | null | null | null | null | null | null | null | null | null |
impl<'a> KafkaPaymentAttempt<'a> {
pub fn from_storage(attempt: &'a PaymentAttempt) -> Self {
let card_payment_method_data = attempt
.get_payment_method_data()
.and_then(|data| data.get_additional_card_info());
Self {
payment_id: &attempt.payment_id,
m... | crates/router/src/services/kafka/payment_attempt.rs | router | impl_block | 719 | rust | null | KafkaPaymentAttempt | null | impl KafkaPaymentAttempt | null | null | null | null | null | null | null | null |
pub struct Payer {
pub name: Secret<String>,
pub document_type: enums::DocumentKind,
pub document_number: Option<Secret<String>>,
pub address: Secret<String>,
pub neighborhood: Secret<String>,
pub city: String,
pub state: Secret<String>,
pub zipcode: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 67 | rust | Payer | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaysafeMeta {
pub payment_handle_token: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | PaysafeMeta | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_aggregates_for_payments(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id_list: Option<Vec<id_type::ProfileId>>,
time_range: common_utils::types::TimeRange,
) -> RouterResponse<api::PaymentsAggregateResponse> {
let db = state.store.as_ref();
let intent_... | crates/router/src/core/payments.rs | router | function_signature | 211 | rust | null | null | null | null | get_aggregates_for_payments | null | null | null | null | null | null | null |
pub struct ProfileCreate {
/// The name of profile
#[schema(max_length = 64)]
pub profile_name: Option<String>,
/// The URL to redirect after the completion of the operation
#[schema(value_type = Option<String>, max_length = 255, example = "https://www.example.com/success")]
pub return_url: Opt... | crates/api_models/src/admin.rs | api_models | struct_definition | 1,894 | rust | ProfileCreate | null | null | null | null | null | null | null | null | null | null | null |
pub fn make_domain(
&mut self,
domain_identifier: String,
domain_description: &str,
) -> Result<DomainId, GraphError<V>> {
let domain_identifier = DomainIdentifier::new(domain_identifier);
Ok(self
.domain_identifier_map
.clone()
.get(&domai... | crates/hyperswitch_constraint_graph/src/builder.rs | hyperswitch_constraint_graph | function_signature | 143 | rust | null | null | null | null | make_domain | null | null | null | null | null | null | null |
/// Get the tenant_id from the lineage
pub fn tenant_id(&self) -> &id_type::TenantId {
match self {
Self::Tenant { tenant_id }
| Self::Organization { tenant_id, .. }
| Self::Merchant { tenant_id, .. }
| Self::Profile { tenant_id, .. } => tenant_id,
}
... | crates/common_utils/src/types/user/theme.rs | common_utils | function_signature | 78 | rust | null | null | null | null | tenant_id | null | null | null | null | null | null | null |
pub struct FlexitiSyncResponse {
transaction_id: String,
purchase: FlexitiPurchase,
} | crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | FlexitiSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GpayBillingAddressParameters
{
"type": "object",
"required": [
"phone_number_required",
"format"
],
"properties": {
"phone_number_required": {
"type": "boolean",
"description": "Is billing phone number required"
},
"format": {
"$ref": ... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 96 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GpayBillingAddressParameters"
] | null | null | null | null |
pub fn validate_payment_method_type_against_payment_method(
payment_method: api_enums::PaymentMethod,
payment_method_type: api_enums::PaymentMethodType,
) -> bool {
match payment_method {
#[cfg(feature = "v1")]
api_enums::PaymentMethod::Card => matches!(
payment_method_type,
... | crates/payment_methods/src/helpers.rs | payment_methods | function_signature | 1,923 | rust | null | null | null | null | validate_payment_method_type_against_payment_method | null | null | null | null | null | null | null |
pub struct AirwallexAuthUpdateResponse {
#[serde(with = "common_utils::custom_serde::iso8601")]
expires_at: PrimitiveDateTime,
token: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | AirwallexAuthUpdateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Threedsecureio; | crates/hyperswitch_connectors/src/connectors/threedsecureio.rs | hyperswitch_connectors | struct_definition | 7 | rust | Threedsecureio | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Globalpay {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&GLOBALPAY_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*GLOBALPAY_SUPPORTED_PAYMENT_METHODS)
}
fn ge... | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | 105 | rust | null | Globalpay | ConnectorSpecifications for | impl ConnectorSpecifications for for Globalpay | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/capture.rs
pub use diesel_models::capture::*;
| crates/router/src/types/storage/capture.rs | router | full_file | 18 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn create_customer(
state: SessionState,
merchant_context: domain::MerchantContext,
customer_data: customers::CustomerRequest,
connector_customer_details: Option<Vec<payment_methods_domain::ConnectorCustomerDetails>>,
) -> errors::CustomerResponse<customers::CustomerResponse> {
let db: &dy... | crates/router/src/core/customers.rs | router | function_signature | 393 | rust | null | null | null | null | create_customer | null | null | null | null | null | null | null |
impl api::PaymentVoid for Bambora {} | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bambora | api::PaymentVoid for | impl api::PaymentVoid for for Bambora | null | null | null | null | null | null | null | null |
pub async fn upsert_conditional_config(
state: SessionState,
key_store: domain::MerchantKeyStore,
request: DecisionManagerRequest,
profile: domain::Profile,
) -> RouterResponse<common_types::payments::DecisionManagerRecord> {
use common_utils::ext_traits::OptionExt;
let key_manager_state: &KeyM... | crates/router/src/core/conditional_config.rs | router | function_signature | 374 | rust | null | null | null | null | upsert_conditional_config | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RankingAlgorithm
{
"type": "string",
"enum": [
"SR_BASED_ROUTING",
"PL_BASED_ROUTING",
"NTW_BASED_ROUTING"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 53 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RankingAlgorithm"
] | null | null | null | null |
pub struct RefundsData {
status: String,
status_desc: String,
refund_id: String,
} | crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | RefundsData | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Dwolla {} | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Dwolla | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Dwolla | null | null | null | null | null | null | null | null |
impl api::UnifiedAuthenticationServiceV2 for Recurly {} | crates/hyperswitch_connectors/src/connectors/recurly.rs | hyperswitch_connectors | impl_block | 13 | rust | null | Recurly | api::UnifiedAuthenticationServiceV2 for | impl api::UnifiedAuthenticationServiceV2 for for Recurly | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Cryptopay {} | crates/hyperswitch_connectors/src/connectors/cryptopay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Cryptopay | api::PaymentSession for | impl api::PaymentSession for for Cryptopay | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/forte.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId};
use base64::Engine;
use common_enums::enums;
use common_utils::{
consts::BASE64_ENGINE,
error... | crates/hyperswitch_connectors/src/connectors/forte.rs | hyperswitch_connectors | full_file | 5,921 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FilterValue {
pub dimension: PaymentDimensions,
pub values: Vec<String>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 20 | rust | FilterValue | null | null | null | null | null | null | null | null | null | null | null |
pub struct OptionalDieselArray<T>(Option<Vec<Option<T>>>); | crates/diesel_models/src/lib.rs | diesel_models | struct_definition | 14 | rust | OptionalDieselArray | null | null | null | null | null | null | null | null | null | null | null |
pub struct RedisSettings {
pub host: String,
pub port: u16,
pub cluster_enabled: bool,
pub cluster_urls: Vec<String>,
pub use_legacy_version: bool,
pub pool_size: usize,
pub reconnect_max_attempts: u32,
/// Reconnect delay in milliseconds
pub reconnect_delay: u32,
/// TTL in seco... | crates/redis_interface/src/types.rs | redis_interface | struct_definition | 179 | rust | RedisSettings | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GetPaymentIntentFilters;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: AuthenticationData, req, _| async move {
analytics::payment_intents::get_... | crates/router/src/analytics.rs | router | impl_block | 173 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct PaymentListFilters {
pub connector: Vec<String>,
pub currency: Vec<storage_enums::Currency>,
pub status: Vec<storage_enums::IntentStatus>,
pub payment_method: Vec<storage_enums::PaymentMethod>,
pub payment_method_type: Vec<storage_enums::PaymentMethodType>,
pub authentication_type: Ve... | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | struct_definition | 83 | rust | PaymentListFilters | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Prophetpay {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/prophetpay.rs | hyperswitch_connectors | impl_block | 18 | rust | null | Prophetpay | ConnectorValidation for | impl ConnectorValidation for for Prophetpay | null | null | null | null | null | null | null | null |
Ok(transformers::get_payapl_webhooks_event(
payload.event_type,
outcome,
))
}
fn get_webhook_resource_object(
&self,
request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::ConnectorError> {
... | crates/hyperswitch_connectors/src/connectors/paypal.rs#chunk2 | hyperswitch_connectors | chunk | 3,662 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn update_gateway_system_in_feature_metadata<F: Clone, D>(
payment_data: &mut D,
gateway_system: GatewaySystem,
) -> RouterResult<()>
where
D: OperationSessionGetters<F> + OperationSessionSetters<F>,
{
let mut payment_intent = payment_data.get_payment_intent().clone();
let existing_metadata = p... | crates/router/src/core/unified_connector_service.rs | router | function_signature | 188 | rust | null | null | null | null | update_gateway_system_in_feature_metadata | null | null | null | null | null | null | null |
impl ConnectorValidation for Dlocal {} | crates/hyperswitch_connectors/src/connectors/dlocal.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Dlocal | ConnectorValidation for | impl ConnectorValidation for for Dlocal | null | null | null | null | null | null | null | null |
impl HeaderPayload {
pub fn with_source(payment_confirm_source: common_enums::PaymentSource) -> Self {
Self {
payment_confirm_source: Some(payment_confirm_source),
..Default::default()
}
}
} | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | impl_block | 47 | rust | null | HeaderPayload | null | impl HeaderPayload | null | null | null | null | null | null | null | null |
pub struct CaptureTransactionBody {
amount: StringMajorUnit,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | CaptureTransactionBody | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/fraud_check.rs
Public structs: 3
use common_enums as storage_enums;
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use masking::{Deserialize, Serialize};
use time::PrimitiveDateTime;
use crate::{
enums::{FraudCheckLastStep, FraudCheckStatus, FraudCheckT... | crates/diesel_models/src/fraud_check.rs | diesel_models | full_file | 986 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/payments/payments--update-intent.mdx
# Type: Doc File
---
openapi: put /v2/payments/{id}/update-intent
--- | api-reference/v2/payments/payments--update-intent.mdx | null | doc_file | 41 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl EmailData for ApiKeyExpiryReminder {
async fn get_email_data(&self, _base_url: &str) -> CustomResult<EmailContents, EmailError> {
let recipient = self.recipient_email.clone().into_inner();
let body = html::get_html_body(EmailBody::ApiKeyExpiryReminder {
expires_in: self.expires_in,... | crates/router/src/services/email/types.rs | router | impl_block | 132 | rust | null | ApiKeyExpiryReminder | EmailData for | impl EmailData for for ApiKeyExpiryReminder | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.JCSVoucherData
{
"type": "object",
"properties": {
"first_name": {
"type": "string",
"description": "The billing first name for Japanese convenience stores",
"example": "Jane",
"nullable": true
},
"last_name": {
"type": "string",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 206 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"JCSVoucherData"
] | null | null | null | null |
impl ConnectorSpecifications for Fiuu {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&FIUU_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*FIUU_SUPPORTED_PAYMENT_METHODS)
}
fn get_supported_web... | crates/hyperswitch_connectors/src/connectors/fiuu.rs | hyperswitch_connectors | impl_block | 108 | rust | null | Fiuu | ConnectorSpecifications for | impl ConnectorSpecifications for for Fiuu | null | null | null | null | null | null | null | null |
pub async fn save_payout_data_to_locker(
state: &SessionState,
payout_data: &mut PayoutData,
customer_id: &id_type::CustomerId,
payout_method_data: &api::PayoutMethodData,
connector_mandate_details: Option<serde_json::Value>,
merchant_context: &domain::MerchantContext,
) -> RouterResult<()> {
... | crates/router/src/core/payouts/helpers.rs | router | function_signature | 3,451 | rust | null | null | null | null | save_payout_data_to_locker | null | null | null | null | null | null | null |
pub struct DummyConnectorPaymentConfirmRequest {
pub attempt_id: String,
} | crates/router/src/routes/dummy_connector/types.rs | router | struct_definition | 16 | rust | DummyConnectorPaymentConfirmRequest | null | null | null | null | null | null | null | null | null | null | null |
{
type Error = Error;
fn try_from(
value: (&AdyenRouterData<&PaymentsAuthorizeRouterData>, &WalletData),
) -> Result<Self, Self::Error> {
let (item, wallet_data) = value;
let amount = get_amount_data(item);
let auth_type = AdyenAuthType::try_from(&item.router_data.connector_a... | crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs#chunk4 | hyperswitch_connectors | chunk | 8,179 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Default for ErrorResponse {
fn default() -> Self {
Self {
code: "HE_00".to_string(),
message: "Something went wrong".to_string(),
reason: None,
status_code: http::StatusCode::INTERNAL_SERVER_ERROR.as_u16(),
attempt_status: None,
co... | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | impl_block | 106 | rust | null | ErrorResponse | Default for | impl Default for for ErrorResponse | null | null | null | null | null | null | null | null |
pub struct EphemeralKey {
pub id: String,
pub merchant_id: common_utils::id_type::MerchantId,
pub customer_id: common_utils::id_type::CustomerId,
pub created_at: i64,
pub expires: i64,
pub secret: String,
} | crates/diesel_models/src/ephemeral_key.rs | diesel_models | struct_definition | 64 | rust | EphemeralKey | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Mpgs {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&MPGS_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*MPGS_SUPPORTED_PAYMENT_METHODS)
}
fn get_supported_web... | crates/hyperswitch_connectors/src/connectors/mpgs.rs | hyperswitch_connectors | impl_block | 106 | rust | null | Mpgs | ConnectorSpecifications for | impl ConnectorSpecifications for for Mpgs | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Bluecode {} | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Bluecode | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Bluecode | null | null | null | null | null | null | null | null |
impl events::ApiEventMetric for SurchargeDecisionManagerRecord {
fn get_api_event_type(&self) -> Option<events::ApiEventsType> {
Some(events::ApiEventsType::Routing)
}
} | crates/api_models/src/surcharge_decision_configs.rs | api_models | impl_block | 45 | rust | null | SurchargeDecisionManagerRecord | events::ApiEventMetric for | impl events::ApiEventMetric for for SurchargeDecisionManagerRecord | null | null | null | null | null | null | null | null |
pub struct MerchantKeyStore {
pub merchant_id: common_utils::id_type::MerchantId,
pub key: Encryptable<Secret<Vec<u8>>>,
#[serde(with = "custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
} | crates/hyperswitch_domain_models/src/merchant_key_store.rs | hyperswitch_domain_models | struct_definition | 58 | rust | MerchantKeyStore | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_enums/src/lib.rs
pub mod connector_enums;
pub mod enums;
pub mod transformers;
pub use enums::*;
pub use transformers::*;
| crates/common_enums/src/lib.rs | common_enums | full_file | 32 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct VantivAddressData {
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub address_line1: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub address_line2: Option<Secret<Strin... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | struct_definition | 252 | rust | VantivAddressData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_ephemeral_key(
request: &api::PaymentsRequest,
state: &SessionState,
merchant_context: &domain::MerchantContext,
) -> Option<ephemeral_key::EphemeralKey> {
match request.get_customer_id() {
Some(customer_id) => helpers::make_ephemeral_key(
... | crates/router/src/core/payments/operations/payment_create.rs | router | function_signature | 165 | rust | null | null | null | null | get_ephemeral_key | null | null | null | null | null | null | null |
File: crates/analytics/src/payment_intents/metrics/total_smart_retries.rs
use std::collections::HashSet;
use api_models::analytics::{
payment_intents::{
PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier,
},
Granularity, TimeRange,
};
use common_utils::errors::Repo... | crates/analytics/src/payment_intents/metrics/total_smart_retries.rs | analytics | full_file | 952 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ApplePaySessionResponse
{
"oneOf": [
{
"$ref": "#/components/schemas/ThirdPartySdkSessionResponse"
},
{
"$ref": "#/components/schemas/NoThirdPartySdkSessionResponse"
},
{
"$ref": "#/components/schemas/NullObject"
}
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 82 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ApplePaySessionResponse"
] | null | null | null | null |
pub trait State {} | crates/router/src/core/cards_info.rs | router | trait_definition | 4 | rust | null | null | State | null | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<ConnectorResponse> {
let payment_attempt_update = PaymentAttemptUpdate::ConnectorResponse {
authentication_data: self.authentication_data.clone(),
encoded_data: self.encoded_data.clone(),
connector_transaction_id... | crates/diesel_models/src/query/connector_response.rs | diesel_models | function_signature | 244 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
pub async fn get_theme_using_optional_theme_id(
state: &SessionState,
theme_id: Option<String>,
) -> UserResult<Option<Theme>> {
match theme_id
.async_map(|theme_id| state.store.find_theme_by_theme_id(theme_id))
.await
.transpose()
{
Ok(theme) => Ok(theme),
Err(e)... | crates/router/src/utils/user/theme.rs | router | function_signature | 117 | rust | null | null | null | null | get_theme_using_optional_theme_id | null | null | null | null | null | null | null |
impl Wellsfargopayout {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs | hyperswitch_connectors | impl_block | 37 | rust | null | Wellsfargopayout | null | impl Wellsfargopayout | null | null | null | null | null | null | null | null |
json_payload: json_payload.map(|payload| payload.0),
query_params: param_string.to_string(),
};
let locking_action = payload.get_locking_input(flow.clone());
Box::pin(api::server_wrap(
flow,
state,
&req,
payload,
|state, auth, req, req_state| {
... | crates/router/src/routes/payments.rs#chunk3 | router | chunk | 1,074 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_headers(headers: HashMap<String, Secret<String>>) -> Self {
let masked_headers = headers
.into_iter()
.map(|(key, value)| (key, Self::mask_value(value.peek())))
.collect();
Self(masked_headers)
} | crates/api_models/src/admin.rs | api_models | function_signature | 58 | rust | null | null | null | null | from_headers | null | null | null | null | null | null | null |
impl EventNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Event> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/events.rs | diesel_models | impl_block | 39 | rust | null | EventNew | null | impl EventNew | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Taxjar {} | crates/hyperswitch_connectors/src/connectors/taxjar.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Taxjar | api::PaymentSync for | impl api::PaymentSync for for Taxjar | null | null | null | null | null | null | null | null |
pub struct RegularTransactionBody {
amount: StringMajorUnit,
merchant_account_id: Secret<String>,
channel: String,
#[serde(skip_serializing_if = "Option::is_none")]
customer_details: Option<CustomerBody>,
order_id: String,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 55 | rust | RegularTransactionBody | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_connector_list(&self) -> Vec<RoutableConnectorChoice> {
match self {
Self::Priority(list) => list.clone(),
Self::VolumeSplit(splits) => {
splits.iter().map(|split| split.connector.clone()).collect()
}
}
} | crates/api_models/src/routing.rs | api_models | function_signature | 61 | rust | null | null | null | null | get_connector_list | null | null | null | null | null | null | null |
/// Encryption functionality
pub fn encrypt(&self, data: impl AsRef<[u8]>) -> Vec<u8> {
data.as_ref().into()
} | crates/external_services/src/no_encryption/core.rs | external_services | function_signature | 36 | rust | null | null | null | null | encrypt | null | null | null | null | null | null | null |
impl LockerMockUpInterface for KafkaStore {
async fn find_locker_by_card_id(
&self,
card_id: &str,
) -> CustomResult<storage::LockerMockUp, errors::StorageError> {
self.diesel_store.find_locker_by_card_id(card_id).await
}
async fn insert_locker_mock_up(
&self,
ne... | crates/router/src/db/kafka_store.rs | router | impl_block | 179 | rust | null | KafkaStore | LockerMockUpInterface for | impl LockerMockUpInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct MandateReference {
pub connector_mandate_id: Option<String>,
pub payment_method_id: Option<String>,
pub mandate_metadata: Option<pii::SecretSerdeValue>,
pub connector_mandate_request_reference_id: Option<String>,
} | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | struct_definition | 54 | rust | MandateReference | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_capture_by_connector_capture_id(
&self,
connector_capture_id: &String,
) -> Option<&storage::Capture> {
self.all_captures
.iter()
.find(|(_, capture)| {
capture.get_optional_connector_transaction_id() == Some(connector_capture_id)
... | crates/router/src/core/payments/types.rs | router | function_signature | 78 | rust | null | null | null | null | get_capture_by_connector_capture_id | null | null | null | null | null | null | null |
pub async fn get_mandate(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse {
let flow = Flow::MandatesRetrieve;
let mandate_id = mandates::MandateId {
mandate_id: path.into_inner(),
};
Box::pin(api::server_wrap(
flow,
state,
... | crates/router/src/routes/mandates.rs | router | function_signature | 198 | rust | null | null | null | null | get_mandate | null | null | null | null | null | null | null |
impl ToArchipelBillingAddress for AddressDetails {
fn to_archipel_billing_address(&self) -> Option<ArchipelBillingAddress> {
let address = self.get_combined_address_line().ok();
let postal_code = self.get_optional_zip();
match (address, postal_code) {
(None, None) => None,
... | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | impl_block | 102 | rust | null | AddressDetails | ToArchipelBillingAddress for | impl ToArchipelBillingAddress for for AddressDetails | null | null | null | null | null | null | null | null |
pub(super) fn get_metadata_inner<'a, T: Parse + Spanned>(
ident: &str,
attrs: impl IntoIterator<Item = &'a Attribute>,
) -> syn::Result<Vec<T>> {
attrs
.into_iter()
.filter(|attr| attr.path().is_ident(ident))
.try_fold(Vec::new(), |mut vec, attr| {
vec.extend(attr.parse_a... | crates/router_derive/src/macros/helpers.rs | router_derive | function_signature | 110 | rust | null | null | null | null | get_metadata_inner | null | null | null | null | null | null | null |
File: crates/api_models/src/chat.rs
Public structs: 2
use common_utils::id_type;
use masking::Secret;
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]
pub struct ChatRequest {
pub message: Secret<String>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct ChatResponse {
pub res... | crates/api_models/src/chat.rs | api_models | full_file | 135 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/paybox.rs | hyperswitch_connectors | function_signature | 27 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct ErrorResponse {
pub error: Option<Vec<ErrorDetails>>,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | ErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics/payment_intents.rs
Public functions: 1
Public structs: 10
use std::{
collections::hash_map::DefaultHasher,
hash::{Hash, Hasher},
};
use common_utils::id_type;
use super::{ForexMetric, NameDescription, TimeRange};
use crate::enums::{
AuthenticationType, Connector, C... | crates/api_models/src/analytics/payment_intents.rs | api_models | full_file | 1,833 | null | null | null | null | null | 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.