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 PaymentMethodSessionResponse {
#[schema(value_type = String, example = "12345_pms_01926c58bc6e77c09e809964e72af8c8")]
pub id: id_type::GlobalPaymentMethodSessionId,
/// The customer id for which the payment methods session is to be created
#[schema(value_type = String, example = "12345_cus_0... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 688 | rust | PaymentMethodSessionResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RefundResponse
{
"type": "object",
"required": [
"refund_id",
"payment_id",
"amount",
"currency",
"status",
"connector"
],
"properties": {
"refund_id": {
"type": "string",
"description": "Unique Identifier for the refund"
},
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 839 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RefundResponse"
] | null | null | null | null |
pub struct PaymeMetadata {
payme_transaction_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | PaymeMetadata | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentPostSessionTokens for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Paypal | api::PaymentPostSessionTokens for | impl api::PaymentPostSessionTokens for for Paypal | null | null | null | null | null | null | null | null |
File: crates/analytics/src/outgoing_webhook_event/events.rs
Public functions: 1
Public structs: 1
use api_models::analytics::{outgoing_webhook_event::OutgoingWebhookLogsRequest, Granularity};
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultExt;
use time::PrimitiveDateTime;
use crate::{
query::... | crates/analytics/src/outgoing_webhook_event/events.rs | analytics | full_file | 795 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CybersourceNotAvailableErrorObject {
#[serde(rename = "type")]
pub error_type: Option<String>,
pub message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | CybersourceNotAvailableErrorObject | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_tokenized_data(
state: &routes::SessionState,
lookup_key: &str,
) -> RouterResult<()> {
let redis_key = get_redis_locker_key(lookup_key);
let func = || async {
metrics::DELETED_TOKENIZED_CARD.add(1, &[]);
let redis_conn = state
.store
.get_red... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 309 | rust | null | null | null | null | delete_tokenized_data | null | null | null | null | null | null | null |
pub struct ArchipelRefundOrderResponse {
id: String,
} | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | ArchipelRefundOrderResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct ClientAuthCheckInfoResponse {
id: String,
client_reference_information: ClientReferenceInformation,
consumer_authentication_information: BarclaycardConsumerAuthInformationEnrollmentResponse,
status: BarclaycardAuthEnrollmentStatus,
error_information: Option<BarclaycardErrorInformation>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 62 | rust | ClientAuthCheckInfoResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct BarclaycardRouterData<T> {
pub amount: StringMajorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | BarclaycardRouterData | null | null | null | null | null | null | null | null | null | null | null |
**Full Changelog:** [`v1.83.1...v1.84.0`](https://github.com/juspay/hyperswitch/compare/v1.83.1...v1.84.0)
- - -
## 1.83.1 (2023-11-17)
### Bug Fixes
- **router:** Add choice to use the appropriate key for jws verification ([#2917](https://github.com/juspay/hyperswitch/pull/2917)) ([`606daa9`](https://github.com/j... | CHANGELOG.md#chunk46 | null | doc_chunk | 8,180 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FormattingLayer<W, F>
where
W: for<'a> MakeWriter<'a> + 'static,
F: Formatter + Clone,
{
dst_writer: W,
pid: u32,
hostname: String,
env: String,
service: String,
#[cfg(feature = "vergen")]
version: String,
#[cfg(feature = "vergen")]
build: String,
default_field... | crates/router_env/src/logger/formatter.rs | router_env | struct_definition | 105 | rust | FormattingLayer | null | null | null | null | null | null | null | null | null | null | null |
impl AccountReferenceMap {
pub fn new(
hash_map: HashMap<id_type::MerchantConnectorAccountId, String>,
) -> Result<Self, api_error_response::ApiErrorResponse> {
Self::validate(&hash_map)?;
let recovery_to_billing = hash_map.clone();
let mut billing_to_recovery = HashMap::new();
... | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | impl_block | 235 | rust | null | AccountReferenceMap | null | impl AccountReferenceMap | null | null | null | null | null | null | null | null |
pub async fn log_refund_delete(
&self,
delete_old_refund: &Refund,
tenant_id: TenantID,
) -> MQResult<()> {
self.log_event(&KafkaEvent::old(
&KafkaRefund::from_storage(delete_old_refund),
tenant_id.clone(),
self.ckh_database_name.clone(),
)... | crates/router/src/services/kafka.rs | router | function_signature | 105 | rust | null | null | null | null | log_refund_delete | null | null | null | null | null | null | null |
Documentation: crates/config_importer/README.md
# Type: Doc File
# config_importer
A simple utility tool to import a Hyperswitch TOML configuration file, convert
it into environment variable key-value pairs, and export it in the specified
format.
As of now, it supports only exporting the environment variables to a JS... | crates/config_importer/README.md | null | doc_file | 339 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Juspaythreedsserver {} | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs | hyperswitch_connectors | impl_block | 14 | rust | null | Juspaythreedsserver | api::PaymentToken for | impl api::PaymentToken for for Juspaythreedsserver | null | null | null | null | null | null | null | null |
pub struct CoinbaseProcessingFee {
pub local: Option<OverpaymentAbsoluteThreshold>,
pub crypto: OverpaymentAbsoluteThreshold,
} | crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | CoinbaseProcessingFee | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for UnifiedAuthenticationService {} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 10 | rust | null | UnifiedAuthenticationService | api::PaymentToken for | impl api::PaymentToken for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
pub fn is_empty_result(&self) -> bool {
self.surcharge_results.is_empty()
} | crates/router/src/core/payments/types.rs | router | function_signature | 22 | rust | null | null | null | null | is_empty_result | null | null | null | null | null | null | null |
/// Checks if the decision is to mandate a 3DS challenge
pub fn should_force_3ds_challenge(self) -> bool {
matches!(self, Self::ChallengeRequested)
} | crates/common_types/src/three_ds_decision_rule_engine.rs | common_types | function_signature | 40 | rust | null | null | null | null | should_force_3ds_challenge | null | null | null | null | null | null | null |
impl RelayWebhooks {
pub fn server(state: AppState) -> Scope {
use api_models::webhooks as webhook_type;
web::scope("/webhooks/relay")
.app_data(web::Data::new(state))
.service(web::resource("/{merchant_id}/{connector_id}").route(
web::post().to(receive_incomi... | crates/router/src/routes/app.rs | router | impl_block | 94 | rust | null | RelayWebhooks | null | impl RelayWebhooks | null | null | null | null | null | null | null | null |
pub struct AuthipayAuthType {
pub(super) api_key: Secret<String>,
pub(super) api_secret: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | AuthipayAuthType | null | null | null | null | null | null | null | null | null | null | null |
impl StorageInterface for MockDb {
fn get_scheduler_db(&self) -> Box<dyn scheduler::SchedulerInterface> {
Box::new(self.clone())
}
fn get_payment_methods_store(&self) -> Box<dyn PaymentMethodsStorageInterface> {
Box::new(self.clone())
}
fn get_cache_store(&self) -> Box<(dyn RedisCon... | crates/router/src/db.rs | router | impl_block | 94 | rust | null | MockDb | StorageInterface for | impl StorageInterface for for MockDb | null | null | null | null | null | null | null | null |
impl NuveiAuthorizePreprocessingCommon for SetupMandateRequestData {
fn get_browser_info(&self) -> Option<BrowserInformation> {
self.browser_info.clone()
}
fn get_related_transaction_id(&self) -> Option<String> {
self.related_transaction_id.clone()
}
fn get_is_moto(&self) -> Option<... | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | impl_block | 655 | rust | null | SetupMandateRequestData | NuveiAuthorizePreprocessingCommon for | impl NuveiAuthorizePreprocessingCommon for for SetupMandateRequestData | null | null | null | null | null | null | null | null |
File: crates/api_models/src/payouts.rs
Public functions: 1
Public structs: 28
use std::collections::HashMap;
use cards::CardNumber;
use common_utils::{
consts::default_payouts_list_limit,
crypto, id_type, link_utils, payout_method_utils,
pii::{self, Email},
transformers::ForeignFrom,
types::{Uni... | crates/api_models/src/payouts.rs#chunk0 | api_models | chunk | 8,186 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Adyenplatform {} | crates/hyperswitch_connectors/src/connectors/adyenplatform.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Adyenplatform | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Adyenplatform | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SuccessBasedRoutingConfigBody
{
"type": "object",
"properties": {
"min_aggregates_size": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 0
},
"default_success_rate": {
"type": "number",
"format": "double",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 262 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SuccessBasedRoutingConfigBody"
] | null | null | null | null |
/// Wrap a string inside PaymentId
pub fn wrap(payment_id_string: String) -> CustomResult<Self, ValidationError> {
Self::try_from(std::borrow::Cow::from(payment_id_string))
} | crates/common_utils/src/id_type/payment.rs | common_utils | function_signature | 44 | rust | null | null | null | null | wrap | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.MultibancoBillingDetails
{
"type": "object",
"properties": {
"email": {
"type": "string",
"example": "example@me.com",
"nullable": true
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 60 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"MultibancoBillingDetails"
] | null | null | null | null |
- Logs the response - Records the connector response for debugging via `event_builder` and `router_env::logger::info!`
- Transforms error format - Maps Billwerk's error fields to Hyperswitch's standardized `ErrorResponse` structure with appropriate fallbacks:
- - Uses `response.code` maps to `code` (with `NO_ERROR_COD... | add_connector.md#chunk1 | null | doc_chunk | 8,117 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn default(status_code: u16) -> Self {
match status_code {
code @ 404 => Self {
error_name: format!("{code} Not found"),
message: "Resource not found".to_string(),
validation_errors: None,
},
code => Self {
e... | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | function_signature | 93 | rust | null | null | null | null | default | null | null | null | null | null | null | null |
impl ApiEventMetric for AuthenticationEligibilityRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
None
}
} | crates/api_models/src/authentication.rs | api_models | impl_block | 34 | rust | null | AuthenticationEligibilityRequest | ApiEventMetric for | impl ApiEventMetric for for AuthenticationEligibilityRequest | null | null | null | null | null | null | null | null |
pub struct PaymentResponse; | crates/router/src/core/payments/operations/payment_response.rs | router | struct_definition | 5 | rust | PaymentResponse | null | null | null | null | null | null | null | null | null | null | null |
impl std::fmt::Debug for RdKafkaProducer {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str("RdKafkaProducer")
}
} | crates/router/src/services/kafka.rs | router | impl_block | 51 | rust | null | RdKafkaProducer | std::fmt::Debug for | impl std::fmt::Debug for for RdKafkaProducer | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::DecisionManagerUpsertConfig;
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: auth::AuthenticationData, update_decision, _| {
let merchant_context = domain::MerchantContext::NormalMerc... | crates/router/src/routes/routing.rs | router | impl_block | 236 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub async fn get_filters_for_payouts(
conn: &PgPooledConn,
payouts: &[Payouts],
merchant_id: &common_utils::id_type::MerchantId,
) -> StorageResult<(
Vec<String>,
Vec<enums::Currency>,
Vec<enums::PayoutStatus>,
Vec<enums::PayoutType>,
)> {
let acti... | crates/diesel_models/src/query/payout_attempt.rs | diesel_models | function_signature | 599 | rust | null | null | null | null | get_filters_for_payouts | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/celero.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
type... | crates/hyperswitch_connectors/src/connectors/celero.rs | hyperswitch_connectors | full_file | 5,917 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics/auth_events.rs
Public functions: 1
Public structs: 14
use std::{
collections::hash_map::DefaultHasher,
hash::{Hash, Hasher},
};
use common_enums::{
AuthenticationConnectors, AuthenticationStatus, Currency, DecoupledAuthenticationType,
TransactionStatus,
};
use ... | crates/api_models/src/analytics/auth_events.rs | api_models | full_file | 2,279 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AddCardResponse {
pub card_id: String,
pub external_id: String,
pub card_fingerprint: Secret<String>,
pub card_global_fingerprint: Secret<String>,
#[serde(rename = "merchant_id")]
pub merchant_id: Option<id_type::MerchantId>,
pub card_number: Option<cards::CardNumber>,
pub car... | crates/router/src/core/payment_methods/transformers.rs | router | struct_definition | 133 | rust | AddCardResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct DataTransCreateAlias {
pub create_alias: bool,
} | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | DataTransCreateAlias | null | null | null | null | null | null | null | null | null | null | null |
pub struct GooglePayPredecryptDataInternal {
pub message_expiration: String,
pub message_id: String,
#[serde(rename = "paymentMethod")]
pub payment_method_type: String,
pub payment_method_details: GooglePayPaymentMethodDetails,
} | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | 54 | rust | GooglePayPredecryptDataInternal | null | null | null | null | null | null | null | null | null | null | null |
impl ApiEventMetric for BlocklistResponse {} | crates/api_models/src/blocklist.rs | api_models | impl_block | 9 | rust | null | BlocklistResponse | ApiEventMetric for | impl ApiEventMetric for for BlocklistResponse | null | null | null | null | null | null | null | null |
pub struct FrmFulfillmentResponse {
///unique order_id for the transaction
#[schema(max_length = 255, example = "pay_qiYfHcDou1ycIaxVXKHF")]
pub order_id: String,
///shipment_ids used in the fulfillment overall...also data from previous fulfillments for the same transactions/order is sent
#[schema(e... | crates/router/src/core/fraud_check/types.rs | router | struct_definition | 111 | rust | FrmFulfillmentResponse | null | null | null | null | null | null | null | null | null | null | null |
pub(crate) fn get_status(status: String) -> api_models::webhooks::IncomingWebhookEvent {
match status.as_str() {
//any response with status != 0 are a failed deposit transaction
"0" => api_models::webhooks::IncomingWebhookEvent::PaymentIntentSuccess,
_ => api_models::webhooks::IncomingWebhoo... | crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs | hyperswitch_connectors | function_signature | 85 | rust | null | null | null | null | get_status | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::ApiKeyRevoke;
let (merchant_id, key_id) = path.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
(&merchant_id, &key_id),
|state, _, (merchant_id, key_id), _| {
api_keys::revoke_api_key(state, merchant_id.clone(... | crates/router/src/routes/api_keys.rs | router | impl_block | 184 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl PartialEq for UserRole {
fn eq(&self, other: &Self) -> bool {
match (
self.get_entity_id_and_type(),
other.get_entity_id_and_type(),
) {
(
Some((self_entity_id, self_entity_type)),
Some((other_entity_id, other_entity_type)),
... | crates/diesel_models/src/user_role.rs | diesel_models | impl_block | 116 | rust | null | UserRole | PartialEq for | impl PartialEq for for UserRole | null | null | null | null | null | null | null | null |
pub fn collect(self) -> PaymentMetricsBucketValue {
let (
payment_processed_amount,
payment_processed_count,
payment_processed_amount_without_smart_retries,
payment_processed_count_without_smart_retries,
payment_processed_amount_in_usd,
pay... | crates/analytics/src/payments/accumulator.rs | analytics | function_signature | 418 | rust | null | null | null | null | collect | null | null | null | null | null | null | null |
impl Placetopay {
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/placetopay.rs | hyperswitch_connectors | impl_block | 35 | rust | null | Placetopay | null | impl Placetopay | null | null | null | null | null | null | null | null |
pub trait BlackList {
async fn check_in_blacklist<A>(&self, state: &A) -> RouterResult<bool>
where
A: SessionStateInfo + Sync;
} | crates/router/src/services/authentication/blacklist.rs | router | trait_definition | 39 | rust | null | null | BlackList | null | null | null | null | null | null | null | null | null |
impl api::Payouts for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Nomupay | api::Payouts for | impl api::Payouts for for Nomupay | null | null | null | null | null | null | null | null |
pub fn new(
sub_code: &'static str,
error_identifier: u16,
error_message: impl ToString,
extra: Option<Extra>,
) -> Self {
Self {
sub_code,
error_identifier,
error_message: error_message.to_string(),
extra,
#[cfg(fea... | crates/api_models/src/errors/types.rs | api_models | function_signature | 82 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
File: crates/router/src/core/pm_auth.rs
Public functions: 6
use std::{collections::HashMap, str::FromStr};
use api_models::{
enums,
payment_methods::{self, BankAccountAccessCreds},
};
use common_enums::{enums::MerchantStorageScheme, PaymentMethodType};
use hex;
pub mod helpers;
pub mod transformers;
use com... | crates/router/src/core/pm_auth.rs | router | full_file | 6,540 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_payment_method_sub_type(&self) -> Option<common_enums::PaymentMethodType> {
self.payment_revenue_recovery_metadata
.as_ref()
.map(|rrm| rrm.payment_method_subtype)
} | crates/diesel_models/src/types.rs | diesel_models | function_signature | 50 | rust | null | null | null | null | get_payment_method_sub_type | null | null | null | null | null | null | null |
pub struct ConnectorWebhookSecrets {
pub secret: Vec<u8>,
pub additional_secret: Option<masking::Secret<String>>,
} | crates/api_models/src/webhooks.rs | api_models | struct_definition | 30 | rust | ConnectorWebhookSecrets | null | null | null | null | null | null | null | null | null | null | null |
pub struct WellsfargoConsumerAuthInformation {
ucaf_collection_indicator: Option<String>,
cavv: Option<Secret<String>>,
ucaf_authentication_data: Option<Secret<String>>,
xid: Option<String>,
directory_server_transaction_id: Option<Secret<String>>,
specification_version: Option<String>,
/// T... | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 138 | rust | WellsfargoConsumerAuthInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct NoonRefundSyncResponseResult {
transactions: Vec<NoonRefundResponseTransactions>,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | NoonRefundSyncResponseResult | null | null | null | null | null | null | null | null | null | null | null |
impl Deref for CycleCheck {
type Target = FxHashMap<NodeId, (Strength, RelationResolution)>;
fn deref(&self) -> &Self::Target {
&self.0
}
} | crates/hyperswitch_constraint_graph/src/types.rs | hyperswitch_constraint_graph | impl_block | 46 | rust | null | CycleCheck | Deref for | impl Deref for for CycleCheck | null | null | null | null | null | null | null | null |
pub struct MessageExtensionAttribute {
pub id: String,
pub name: String,
pub criticality_indicator: bool,
pub data: serde_json::Value,
} | crates/hyperswitch_domain_models/src/router_request_types/authentication.rs | hyperswitch_domain_models | struct_definition | 36 | rust | MessageExtensionAttribute | null | null | null | null | null | null | null | null | null | null | null |
pub struct Reason {
reason: Option<String>,
code: Option<u64>,
} | crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | Reason | null | null | null | null | null | null | null | null | null | null | null |
pub struct ChargeResponseData {
charge: SingleChargeResponseData,
} | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | ChargeResponseData | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Nordea {
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/nordea.rs | hyperswitch_connectors | impl_block | 210 | rust | null | Nordea | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Nordea | null | null | null | null | null | null | null | null |
pub struct CheckoutResponse {
redirect_url: url::Url,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | CheckoutResponse | null | null | null | null | null | null | null | null | null | null | null |
impl DummyConnectorPaymentData {
pub fn is_eligible_for_refund(&self, refund_amount: i64) -> DummyConnectorResult<()> {
if self.eligible_amount < refund_amount {
return Err(
report!(DummyConnectorErrors::RefundAmountExceedsPaymentAmount)
.attach_printable("Eli... | crates/router/src/routes/dummy_connector/types.rs | router | impl_block | 131 | rust | null | DummyConnectorPaymentData | null | impl DummyConnectorPaymentData | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Tokenio {} | crates/hyperswitch_connectors/src/connectors/tokenio.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Tokenio | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Tokenio | null | null | null | null | null | null | null | null |
Web Documentation: Previous Roadmap - Q4 2024 | Hyperswitch
# Type: Web Doc
🗺️ Our Roadmap typically pans out over a 3-month period and we establish topics we work on upfront.
👂And as always, we listen to your feedback and adapt our plans if needed.
Recap of Q3 2024
Hyperswitch is now PCI Software Security Standard ... | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q4-2024 | null | web_doc_file | 1,012 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q4-2024 | Previous Roadmap - Q4 2024 | Hyperswitch | null |
pub struct NuveiAuthType {
pub(super) merchant_id: Secret<String>,
pub(super) merchant_site_id: Secret<String>,
pub(super) merchant_secret: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | NuveiAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct ThreeDSRequestor {
#[serde(rename = "threeDSRequestorAuthenticationInd")]
pub three_ds_requestor_authentication_ind: ThreeDSRequestorAuthenticationIndicator,
/// Format of this field was changed with EMV 3DS 2.3.1 version:
/// In versions prior to 2.3.1, this field is a single object.
///... | crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs | hyperswitch_connectors | struct_definition | 869 | rust | ThreeDSRequestor | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Itaubank {} | crates/hyperswitch_connectors/src/connectors/itaubank.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Itaubank | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Itaubank | null | null | null | null | null | null | null | null |
pub struct WisePayoutsWebhookBody {
pub data: WisePayoutsWebhookData,
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | WisePayoutsWebhookBody | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Signifyd {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&SYGNIFYD_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
None
}
fn get_supported_webhook_flows(&self) -> Optio... | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 95 | rust | null | Signifyd | ConnectorSpecifications for | impl ConnectorSpecifications for for Signifyd | null | null | null | null | null | null | null | null |
pub async fn update_by_merchant_id_customer_id(
conn: &PgPooledConn,
customer_id: &common_utils::id_type::CustomerId,
merchant_id: &common_utils::id_type::MerchantId,
address: AddressUpdateInternal,
) -> StorageResult<Vec<Self>> {
generics::generic_update_with_results::<<Self... | crates/diesel_models/src/query/address.rs | diesel_models | function_signature | 127 | rust | null | null | null | null | update_by_merchant_id_customer_id | null | null | null | null | null | null | null |
impl Bluecode {
pub fn new() -> &'static Self {
&Self {
amount_converter: &FloatMajorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 34 | rust | null | Bluecode | null | impl Bluecode | null | null | null | null | null | null | null | null |
pub struct StripebillingCard {
number: cards::CardNumber,
expiry_month: Secret<String>,
expiry_year: Secret<String>,
cvc: Secret<String>,
complete: bool,
} | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | StripebillingCard | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardVerification {
result_code: Option<String>,
result_code_raw: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | CardVerification | null | null | null | null | null | null | null | null | null | null | null |
impl Serializer for PIISerializer {
type Ok = Value;
type Error = serde_json::Error;
type SerializeSeq = SerializeVec<Self>;
type SerializeTuple = SerializeVec<Self>;
type SerializeTupleStruct = SerializeVec<Self>;
type SerializeTupleVariant = SerializeTupleVariant<Self>... | crates/masking/src/serde.rs | masking | impl_block | 1,530 | rust | null | PIISerializer | Serializer for | impl Serializer for for PIISerializer | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/mandates/{mandate_id}"
{
"get": {
"tags": [
"Mandates"
],
"summary": "Mandates - Retrieve Mandate",
"description": "Retrieves a mandate created using the Payments/Create API",
"operationId": "Retrieve a Mandate",
"parameters": [
{
"name": "mandat... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 238 | .json | null | null | null | null | null | openapi_spec | paths | [
"/mandates/{mandate_id}"
] | null | null | null | null |
pub struct PaymentAddress {
pub address: Address,
pub payment_id: id_type::PaymentId,
// This is present in `PaymentAddress` because even `payouts` uses `PaymentAddress`
pub customer_id: Option<id_type::CustomerId>,
} | crates/router/src/types/domain/address.rs | router | struct_definition | 57 | rust | PaymentAddress | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Paysafe {} | crates/hyperswitch_connectors/src/connectors/paysafe.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paysafe | api::PaymentSession for | impl api::PaymentSession for for Paysafe | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Paypal | api::PaymentToken for | impl api::PaymentToken for for Paypal | null | null | null | null | null | null | null | null |
pub struct WiseFulfillResponse {
status: WiseStatus,
error_code: Option<String>,
error_message: Option<String>,
balance_transaction_id: Option<i64>,
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | WiseFulfillResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct SantanderPixQRCodeErrorResponse {
#[serde(rename = "type")]
pub field_type: Secret<String>,
pub title: String,
pub status: i64,
pub detail: Option<String>,
pub correlation_id: Option<String>,
#[serde(rename = "violacoes")]
pub violations: Option<Vec<SantanderViolations>>,
} | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 76 | rust | SantanderPixQRCodeErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl SecretsHandler for PaymentMethodAuth {
async fn convert_to_raw_secret(
value: SecretStateContainer<Self, SecuredSecret>,
secret_management_client: &dyn SecretManagementInterface,
) -> CustomResult<SecretStateContainer<Self, RawSecret>, SecretsManagementError> {
let payment_method_au... | crates/payment_methods/src/configs/settings.rs | payment_methods | impl_block | 122 | rust | null | PaymentMethodAuth | SecretsHandler for | impl SecretsHandler for for PaymentMethodAuth | null | null | null | null | null | null | null | null |
impl GetLockingInput for FPaymentsRejectRequest<'_> {
fn get_locking_input<F>(&self, flow: F) -> api_locking::LockAction
where
F: types::FlowMetric,
lock_utils::ApiIdentifier: From<F>,
{
api_locking::LockAction::Hold {
input: api_locking::LockingInput {
un... | crates/router/src/routes/payments.rs | router | impl_block | 125 | rust | null | FPaymentsRejectRequest | GetLockingInput for | impl GetLockingInput for for FPaymentsRejectRequest | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage.rs
pub mod address;
pub mod api_keys;
pub mod authentication;
pub mod authorization;
pub mod blocklist;
pub mod blocklist_fingerprint;
pub mod blocklist_lookup;
pub mod business_profile;
pub mod callback_mapper;
pub mod capture;
pub mod cards_info;
pub mod configs;
pub mod custome... | crates/router/src/types/storage.rs | router | full_file | 600 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Volt {} | crates/hyperswitch_connectors/src/connectors/volt.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Volt | api::RefundExecute for | impl api::RefundExecute for for Volt | null | null | null | null | null | null | null | null |
pub struct MetricsBucketResponse {
#[serde(flatten)]
pub values: PaymentIntentMetricsBucketValue,
#[serde(flatten)]
pub dimensions: PaymentIntentMetricsBucketIdentifier,
} | crates/api_models/src/analytics/payment_intents.rs | api_models | struct_definition | 39 | rust | MetricsBucketResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct ElavonAuthType {
pub(super) account_id: Secret<String>,
pub(super) user_id: Secret<String>,
pub(super) pin: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | ElavonAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_primary_details_as_value(
&self,
) -> CustomResult<serde_json::Value, errors::ParsingError> {
self.primary_business_details
.clone()
.unwrap_or_default()
.encode_to_value()
} | crates/api_models/src/admin.rs | api_models | function_signature | 53 | rust | null | null | null | null | get_primary_details_as_value | null | null | null | null | null | null | null |
pub fn add_ca_certificate_pem(mut self, ca_certificate: Option<Secret<String>>) -> Self {
self.ca_certificate = ca_certificate;
self
} | crates/common_utils/src/request.rs | common_utils | function_signature | 34 | rust | null | null | null | null | add_ca_certificate_pem | null | null | null | null | null | null | null |
impl PaymentCapture for Payone {} | crates/hyperswitch_connectors/src/connectors/payone.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Payone | PaymentCapture for | impl PaymentCapture for for Payone | null | null | null | null | null | null | null | null |
pub fn diesel_enum(
args: proc_macro::TokenStream,
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
let args_parsed = parse_macro_input!(args as DieselEnumMeta);
let item = syn::parse_macro_input!(item as syn::ItemEnum);
macros::diesel::diesel_enum_attribute_macro(args_parsed, &item)
... | crates/router_derive/src/lib.rs | router_derive | function_signature | 98 | rust | null | null | null | null | diesel_enum | null | null | null | null | null | null | null |
.await
}
async fn delete_gsm_rule(
&self,
connector: String,
flow: String,
sub_flow: String,
code: String,
message: String,
) -> CustomResult<bool, errors::StorageError> {
self.diesel_store
.delete_gsm_rule(connector, flow, sub... | crates/router/src/db/kafka_store.rs#chunk3 | router | chunk | 7,824 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/dashboard_metadata.rs
pub use diesel_models::user::dashboard_metadata::*;
| crates/router/src/types/storage/dashboard_metadata.rs | router | full_file | 21 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
pub success: bool,
pub data: RefundData,
} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
/// value is NULL. If the database column contains a NULL value, an error will be returned.
pub struct RequiredFromNullable<T>(T); | crates/diesel_models/src/lib.rs | diesel_models | struct_definition | 30 | rust | RequiredFromNullable | null | null | null | null | null | null | null | null | null | null | null |
impl Amazonpay {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
}
fn get_last_segment(canonical_uri: &str) -> String {
canonical_uri
.chars()
.rev()
.take_while(|&c| c != '/')
.col... | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | impl_block | 796 | rust | null | Amazonpay | null | impl Amazonpay | null | null | null | null | null | null | null | null |
pub struct Checkout {
amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),
amount_converter_webhooks: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | struct_definition | 48 | rust | Checkout | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_connector_test_mode(&self) -> Option<bool> {
self.test_mode
} | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | function_signature | 21 | rust | null | null | null | null | get_connector_test_mode | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentsDynamicTaxCalculationRequest
{
"type": "object",
"required": [
"shipping",
"client_secret",
"payment_method_type"
],
"properties": {
"shipping": {
"$ref": "#/components/schemas/Address"
},
"client_secret": {
"type": "string",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 148 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentsDynamicTaxCalculationRequest"
] | null | null | null | null |
ds_response: DsResponse,
capture_method: Option<enums::CaptureMethod>,
) -> Result<enums::AttemptStatus, error_stack::Report<errors::ConnectorError>> {
// Redsys consistently provides a 4-digit response code, where numbers ranging from 0000 to 0099 indicate successful transactions
if ds_response.0.start... | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs#chunk1 | hyperswitch_connectors | chunk | 8,189 | 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.