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 UserRole {
pub id: i32,
pub user_id: String,
pub merchant_id: Option<id_type::MerchantId>,
pub role_id: String,
pub org_id: Option<id_type::OrganizationId>,
pub status: enums::UserStatus,
pub created_by: String,
pub last_modified_by: String,
pub created_at: PrimitiveDateTi... | crates/diesel_models/src/user_role.rs | diesel_models | struct_definition | 143 | rust | UserRole | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GenerateRefundReport;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
json_payload.into_inner(),
|state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move {
... | crates/router/src/analytics.rs | router | impl_block | 372 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct MultipleCaptureData {
// key -> capture_id, value -> Capture
all_captures: HashMap<String, storage::Capture>,
latest_capture: storage::Capture,
pub expand_captures: Option<bool>,
_private: Private, // to restrict direct construction of MultipleCaptureData
} | crates/router/src/core/payments/types.rs | router | struct_definition | 65 | rust | MultipleCaptureData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn start_tokenize_data_workflow(
state: &routes::SessionState,
tokenize_tracker: &storage::ProcessTracker,
) -> Result<(), errors::ProcessTrackerError> {
let db = &*state.store;
let delete_tokenize_data = serde_json::from_value::<storage::TokenizeCoreWorkflow>(
tokenize_tracker.trackin... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 269 | rust | null | null | null | null | start_tokenize_data_workflow | null | null | null | null | null | null | null |
impl api::PaymentSync for Tsys {} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Tsys | api::PaymentSync for | impl api::PaymentSync for for Tsys | null | null | null | null | null | null | null | null |
.await
.to_not_found_response(errors::ApiErrorResponse::GenericNotFoundError {
message: "payment methods session does not exist or has expired".to_string(),
})
.attach_printable("Failed to retrieve payment methods session from db")?;
let encrypted_data = request
... | crates/router/src/core/payment_methods.rs#chunk3 | router | chunk | 5,103 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(
dispute_stage: Option<DisputeStage>,
connector: Option<String>,
currency: Option<Currency>,
normalized_time_range: TimeRange,
) -> Self {
Self {
dispute_stage,
connector,
currency,
time_bucket: normalized_time_range,... | crates/api_models/src/analytics/disputes.rs | api_models | function_signature | 75 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
Public structs: 8
use common_enums::enums;
use common_utils::types::StringMinorUnit;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_types::re... | crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs | hyperswitch_connectors | full_file | 1,663 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ClientAuthSetupInfoResponse {
id: String,
client_reference_information: ClientReferenceInformation,
consumer_authentication_information: BarclaycardConsumerAuthInformationResponse,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | ClientAuthSetupInfoResponse | null | null | null | null | null | null | null | null | null | null | null |
impl<'a> NetworkTokenizationBuilder<'a, CardTokenStored> {
pub fn set_payment_method_response(
self,
payment_method: &'a domain::PaymentMethod,
) -> NetworkTokenizationBuilder<'a, PaymentMethodCreated> {
let card_detail_from_locker = self.card.as_ref().map(|card| api::CardDetailFromLocke... | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | impl_block | 478 | rust | null | NetworkTokenizationBuilder | null | impl NetworkTokenizationBuilder | null | null | null | null | null | null | null | null |
pub fn refunds_list() {} | crates/openapi/src/routes/refunds.rs | openapi | function_signature | 6 | rust | null | null | null | null | refunds_list | null | null | null | null | null | null | null |
pub struct Transaction; | crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs | hyperswitch_domain_models | struct_definition | 4 | rust | Transaction | null | null | null | null | null | null | null | null | null | null | null |
pub fn filter_ntid_supported_connectors(
connectors: Vec<api::ConnectorRoutingData>,
ntid_supported_connectors: &HashSet<enums::Connector>,
) -> Vec<api::ConnectorRoutingData> {
connectors
.into_iter()
.filter(|data| ntid_supported_connectors.contains(&data.connector_data.connector_name))
... | crates/router/src/core/payments.rs | router | function_signature | 77 | rust | null | null | null | null | filter_ntid_supported_connectors | null | null | null | null | null | null | null |
pub struct Error {
pub code: Option<String>,
pub property_name: Option<String>,
pub message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | Error | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_gsm_decision(
option_gsm: Option<hyperswitch_domain_models::gsm::GatewayStatusMap>,
) -> common_enums::GsmDecision {
let option_gsm_decision = option_gsm.map(|gsm| gsm.feature_data.get_decision());
if option_gsm_decision.is_some() {
metrics::AUTO_PAYOUT_RETRY_GSM_MATCH_COUNT.add(1, &[]);... | crates/router/src/core/payouts/retry.rs | router | function_signature | 98 | rust | null | null | null | null | get_gsm_decision | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/custombilling.rs
use masking::Secret;
use router::{
types::{self, api, storage::enums,
}};
use crate::utils::{self, ConnectorActions};
use test_utils::connector_auth;
#[derive(Clone, Copy)]
struct CustombillingTest;
impl ConnectorActions for CustombillingTest {}
impl utils::C... | crates/router/tests/connectors/custombilling.rs | router | full_file | 2,898 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PlatformOrgAdminAuthWithMerchantIdFromRoute {
pub merchant_id_from_route: id_type::MerchantId,
pub is_admin_auth_allowed: bool,
} | crates/router/src/services/authentication.rs | router | struct_definition | 35 | rust | PlatformOrgAdminAuthWithMerchantIdFromRoute | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApplePayDecryptedData {
pub data: Secret<String>,
pub signature: Secret<String>,
pub version: Secret<String>,
pub header: ApplePayHeader,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | ApplePayDecryptedData | null | null | null | null | null | null | null | null | null | null | null |
impl PartialEq for AuthEventMetricsBucketIdentifier {
fn eq(&self, other: &Self) -> bool {
let mut left = DefaultHasher::new();
self.hash(&mut left);
let mut right = DefaultHasher::new();
other.hash(&mut right);
left.finish() == right.finish()
}
} | crates/api_models/src/analytics/auth_events.rs | api_models | impl_block | 70 | rust | null | AuthEventMetricsBucketIdentifier | PartialEq for | impl PartialEq for for AuthEventMetricsBucketIdentifier | null | null | null | null | null | null | null | null |
pub struct AuthipayVoidRequest {
request_type: &'static str,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | AuthipayVoidRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payouts_update() {} | crates/openapi/src/routes/payouts.rs | openapi | function_signature | 7 | rust | null | null | null | null | payouts_update | null | null | null | null | null | null | null |
pub struct TryGetEnumMeta {
error_type: syn::Ident,
variant: syn::Ident,
} | crates/router_derive/src/macros/try_get_enum.rs | router_derive | struct_definition | 23 | rust | TryGetEnumMeta | null | null | null | null | null | null | null | null | null | null | null |
pub struct StaxBankTokenizeData {
person_name: Secret<String>,
bank_account: Secret<String>,
bank_routing: Secret<String>,
bank_name: common_enums::BankNames,
bank_type: common_enums::BankType,
bank_holder_type: common_enums::BankHolderType,
customer_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/stax/transformers.rs | hyperswitch_connectors | struct_definition | 73 | rust | StaxBankTokenizeData | null | null | null | null | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for ProxyResponse {} | crates/api_models/src/proxy.rs | api_models | impl_block | 13 | rust | null | ProxyResponse | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for ProxyResponse | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/api/vault_v2.rs
//! Vault V2 interface
use hyperswitch_domain_models::{
router_data_v2::flow_common_types::VaultConnectorFlowData,
router_flow_types::vault::{
ExternalVaultCreateFlow, ExternalVaultDeleteFlow, ExternalVaultInsertFlow,
ExternalVaultRetrieve... | crates/hyperswitch_interfaces/src/api/vault_v2.rs | hyperswitch_interfaces | full_file | 349 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GetAuthEventFilterRequest {
pub time_range: TimeRange,
#[serde(default)]
pub group_by_names: Vec<AuthEventDimensions>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 34 | rust | GetAuthEventFilterRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct Dlocal {
amount_convertor: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/dlocal.rs | hyperswitch_connectors | struct_definition | 27 | rust | Dlocal | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Affirm {} | crates/hyperswitch_connectors/src/connectors/affirm.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Affirm | api::Payment for | impl api::Payment for for Affirm | null | null | null | null | null | null | null | null |
impl ConnectorAccessToken for Signifyd {} | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Signifyd | ConnectorAccessToken for | impl ConnectorAccessToken for for Signifyd | null | null | null | null | null | null | null | null |
pub struct ChargebeePaymentMethod {
pub reference_id: String,
pub gateway: ChargebeeGateway,
} | crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | ChargebeePaymentMethod | null | null | null | null | null | null | null | null | null | null | null |
pub async fn profile_retrieve() {} | crates/openapi/src/routes/profile.rs | openapi | function_signature | 8 | rust | null | null | null | null | profile_retrieve | null | null | null | null | null | null | null |
pub fn cors(config: settings::CorsSettings) -> actix_cors::Cors {
let allowed_methods = config.allowed_methods.iter().map(|s| s.as_str());
let mut cors = actix_cors::Cors::default()
.allowed_methods(allowed_methods)
.allow_any_header()
.expose_any_header()
.max_age(config.max_ag... | crates/router/src/cors.rs | router | function_signature | 168 | rust | null | null | null | null | cors | null | null | null | null | null | null | null |
pub struct CardCapRes {
pub card_type: Option<Secret<String>>,
pub card_type_name: Option<Secret<String>>,
unmasked_account_number: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | struct_definition | 39 | rust | CardCapRes | null | null | null | null | null | null | null | null | null | null | null |
pub struct MerchantAccountIdentifier {
pub merchant_id: id_type::MerchantId,
pub org_id: id_type::OrganizationId,
} | crates/router/src/types/domain/user.rs | router | struct_definition | 29 | rust | MerchantAccountIdentifier | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
use super::process_tracker::revenue_recovery;
// TODO: Deprecated. Remove this in favour of /v2/process-trackers
web::scope("/v2/process_tracker/revenue_recovery_workflow")
.app_data(web::Data::new(state.clone()))
.service(
... | crates/router/src/routes/app.rs | router | function_signature | 103 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
impl api::PaymentVoid for Hipay {} | crates/hyperswitch_connectors/src/connectors/hipay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Hipay | api::PaymentVoid for | impl api::PaymentVoid for for Hipay | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsUpdateMetadata;
let payment_id = path.into_inner();
let payload = payment_types::PaymentsUpdateMetadataRequest {
payment_id,
..json_payload.into_inner()
};
tracing::Span::current().record("payment_id", payload.payment_id.get_string_repr());
... | crates/router/src/routes/payments.rs | router | impl_block | 329 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub fn add_certificate(&mut self, certificate: Option<Secret<String>>) {
self.certificate = certificate;
} | crates/common_utils/src/request.rs | common_utils | function_signature | 25 | rust | null | null | null | null | add_certificate | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.UIWidgetFormLayout
{
"type": "string",
"enum": [
"tabs",
"journey"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 38 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"UIWidgetFormLayout"
] | null | null | null | null |
pub struct PayeezyPaymentsRequest {
pub merchant_ref: String,
pub transaction_type: PayeezyTransactionType,
pub method: PayeezyPaymentMethodType,
pub amount: String,
pub currency_code: String,
pub credit_card: PayeezyPaymentMethod,
pub stored_credentials: Option<StoredCredentials>,
pub r... | crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs | hyperswitch_connectors | struct_definition | 78 | rust | PayeezyPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))
}
fn get_webhook_event_type(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::I... | crates/hyperswitch_connectors/src/connectors/nexixpay.rs#chunk1 | hyperswitch_connectors | chunk | 831 | null | null | null | null | null | null | null | null | null | null | null | null | null |
let ec_key = public_key
.ec_key()
.change_context(errors::GooglePayDecryptionError::DerivingEcKeyFailed)?;
// get the sender id i.e. Google
let sender_id = String::from_utf8(consts::SENDER_ID.to_vec())
.change_context(errors::GooglePayDecryptionError::Deseria... | crates/router/src/core/payments/helpers.rs#chunk6 | router | chunk | 8,176 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/redsys.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_utils::{
errors::CustomResult,
ext_traits::{BytesExt, XmlExt},
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConve... | crates/hyperswitch_connectors/src/connectors/redsys.rs | hyperswitch_connectors | full_file | 7,024 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthenticationConnectorDetails {
/// List of authentication connectors
#[schema(value_type = Vec<AuthenticationConnectors>)]
pub authentication_connectors: Vec<common_enums::AuthenticationConnectors>,
/// URL of the (customer service) website that will be shown to the shopper in case of techn... | crates/api_models/src/admin.rs | api_models | struct_definition | 126 | rust | AuthenticationConnectorDetails | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Stripebilling {} | crates/hyperswitch_connectors/src/connectors/stripebilling.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Stripebilling | api::PaymentVoid for | impl api::PaymentVoid for for Stripebilling | null | null | null | null | null | null | null | null |
pub async fn payment_methods_session_delete_payment_method(
state: SessionState,
merchant_context: domain::MerchantContext,
profile: domain::Profile,
pm_id: id_type::GlobalPaymentMethodId,
payment_method_session_id: id_type::GlobalPaymentMethodSessionId,
) -> RouterResponse<api::PaymentMethodDeleteR... | crates/router/src/core/payment_methods.rs | router | function_signature | 236 | rust | null | null | null | null | payment_methods_session_delete_payment_method | null | null | null | null | null | null | null |
pub struct AuthenticationDataWithoutProfile {
pub merchant_account: domain::MerchantAccount,
pub key_store: domain::MerchantKeyStore,
} | crates/router/src/services/authentication.rs | router | struct_definition | 29 | rust | AuthenticationDataWithoutProfile | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
iata_refund_id: String,
status: RefundStatus,
merchant_refund_id: String,
amount: FloatMajorUnit,
currency: String,
bank_transfer_description: Option<String>,
failure_code: Option<String>,
failure_details: Option<String>,
lock_reason: Option<String>,
c... | crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs | hyperswitch_connectors | struct_definition | 146 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/api/webhook_events.rs
pub use api_models::webhook_events::{
EventListConstraints, EventListConstraintsInternal, EventListItemResponse,
EventListRequestInternal, EventRetrieveResponse, OutgoingWebhookRequestContent,
OutgoingWebhookResponseContent, TotalEventsResponse, WebhookDe... | crates/router/src/types/api/webhook_events.rs | router | full_file | 81 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ObjectReferenceId {
pub fn get_connector_transaction_id_as_string(
self,
) -> Result<String, common_utils::errors::ValidationError> {
match self {
Self::PaymentId(
payments::PaymentIdType::ConnectorTransactionId(id)
) => Ok(id),
Self::Paym... | crates/api_models/src/webhooks.rs | api_models | impl_block | 331 | rust | null | ObjectReferenceId | null | impl ObjectReferenceId | null | null | null | null | null | null | null | null |
pub struct FrmFulfillmentSignifydRequest {
pub order_id: String,
pub fulfillment_status: Option<FulfillmentStatus>,
pub fulfillments: Vec<Fulfillments>,
} | crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs | hyperswitch_connectors | struct_definition | 40 | rust | FrmFulfillmentSignifydRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn outgoing_webhook_events_core(
pool: &AnalyticsProvider,
req: OutgoingWebhookLogsRequest,
merchant_id: &common_utils::id_type::MerchantId,
) -> AnalyticsResult<Vec<OutgoingWebhookLogsResult>> {
let data = match pool {
AnalyticsProvider::Sqlx(_) => Err(FiltersError::NotImplemented(
... | crates/analytics/src/outgoing_webhook_event/core.rs | analytics | function_signature | 182 | rust | null | null | null | null | outgoing_webhook_events_core | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &FloatMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/iatapay.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl<'a> NetworkTokenizationBuilder<'a, PmFetched> {
pub fn set_validate_result(
self,
customer: &'a api::CustomerDetails,
) -> NetworkTokenizationBuilder<'a, PmValidated> {
NetworkTokenizationBuilder {
state: std::marker::PhantomData,
customer: Some(customer),
... | crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs | router | impl_block | 159 | rust | null | NetworkTokenizationBuilder | null | impl NetworkTokenizationBuilder | null | null | null | null | null | null | null | null |
impl ConnectorEnum {
/// Get the connector integration
///
/// # Returns
///
/// A `BoxedConnectorIntegrationInterface` containing the connector integration
pub fn get_connector_integration<F, ResourceCommonData, Req, Resp>(
&self,
) -> BoxedConnectorIntegrationInterface<F, ResourceC... | crates/hyperswitch_interfaces/src/connector_integration_interface.rs | hyperswitch_interfaces | impl_block | 336 | rust | null | ConnectorEnum | null | impl ConnectorEnum | null | null | null | null | null | null | null | null |
impl Refund {
pub async fn update_with_id(
self,
conn: &PgPooledConn,
refund: RefundUpdate,
) -> StorageResult<Self> {
match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>(
conn,
self.id.to_owned(),
RefundUpdateInternal::f... | crates/diesel_models/src/query/refund.rs | diesel_models | impl_block | 353 | rust | null | Refund | null | impl Refund | null | null | null | null | null | null | null | null |
pub struct RecordReturn; | crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs | hyperswitch_domain_models | struct_definition | 5 | rust | RecordReturn | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaystackWebhookData {
pub event: String,
pub data: PaystackWebhookEventData,
} | crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | PaystackWebhookData | null | null | null | null | null | null | null | null | null | null | null |
pub struct WisePayoutResponse {
id: i64,
user: i64,
target_account: i64,
source_account: Option<i64>,
quote_uuid: String,
status: WiseStatus,
reference: Option<String>,
rate: Option<f32>,
business: Option<i64>,
details: Option<WiseTransferDetails>,
has_active_issues: Option<b... | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 130 | rust | WisePayoutResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_id(
conn: &PgPooledConn,
id: &common_utils::id_type::GlobalTokenId,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
tokenization::dsl::id.eq(id.to_owned()),
)
.await
} | crates/diesel_models/src/query/tokenization.rs | diesel_models | function_signature | 79 | rust | null | null | null | null | find_by_id | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Dlocal {
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/dlocal.rs | hyperswitch_connectors | impl_block | 202 | rust | null | Dlocal | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Dlocal | null | null | null | null | null | null | null | null |
pub async fn config_key_retrieve(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> impl Responder {
let flow = Flow::ConfigKeyFetch;
let key = path.into_inner();
api::server_wrap(
flow,
state,
&req,
&key,
|state, _, key, _| conf... | crates/router/src/routes/configs.rs | router | function_signature | 115 | rust | null | null | null | null | config_key_retrieve | null | null | null | null | null | null | null |
File: crates/router/src/core/payment_methods/transformers.rs
Public functions: 26
Public structs: 16
pub use ::payment_methods::controller::{DataDuplicationCheck, DeleteCardResp};
#[cfg(feature = "v2")]
use api_models::payment_methods::PaymentMethodResponseItem;
use api_models::{enums as api_enums, payment_methods::... | crates/router/src/core/payment_methods/transformers.rs#chunk0 | router | chunk | 8,182 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn clone_connector(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<user_api::CloneConnectorRequest>,
) -> HttpResponse {
let flow = Flow::CloneConnector;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
json_payload.into_inner(),... | crates/router/src/routes/user.rs | router | function_signature | 135 | rust | null | null | null | null | clone_connector | null | null | null | null | null | null | null |
pub struct PaypalFulfillRequest {
sender_batch_header: PayoutBatchHeader,
items: Vec<PaypalPayoutItem>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | PaypalFulfillRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentsCompleteAuthorize for Bluesnap {} | crates/hyperswitch_connectors/src/connectors/bluesnap.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bluesnap | api::PaymentsCompleteAuthorize for | impl api::PaymentsCompleteAuthorize for for Bluesnap | null | null | null | null | null | null | null | null |
impl ApiEventMetric for FrmFulfillmentRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::FraudCheck)
}
} | crates/hyperswitch_domain_models/src/router_request_types/fraud_check.rs | hyperswitch_domain_models | impl_block | 41 | rust | null | FrmFulfillmentRequest | ApiEventMetric for | impl ApiEventMetric for for FrmFulfillmentRequest | null | null | null | null | null | null | null | null |
impl ConnectorRedirectResponse for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Nomupay | ConnectorRedirectResponse for | impl ConnectorRedirectResponse for for Nomupay | null | null | null | null | null | null | null | null |
pub struct StoreLockerResponse {
pub store_card_resp: pm_transformers::StoreCardRespPayload,
pub store_token_resp: pm_transformers::StoreCardRespPayload,
} | crates/router/src/core/payment_methods/tokenize.rs | router | struct_definition | 37 | rust | StoreLockerResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Cashtocode {} | crates/hyperswitch_connectors/src/connectors/cashtocode.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Cashtocode | api::PaymentToken for | impl api::PaymentToken for for Cashtocode | null | null | null | null | null | null | null | null |
impl RuleMigrationQuery {
pub fn validated_limit(&self) -> u32 {
self.limit.unwrap_or(50).min(1000)
}
} | crates/api_models/src/routing.rs | api_models | impl_block | 37 | rust | null | RuleMigrationQuery | null | impl RuleMigrationQuery | null | null | null | null | null | null | null | null |
impl api::Refund for UnifiedAuthenticationService {} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 10 | rust | null | UnifiedAuthenticationService | api::Refund for | impl api::Refund for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/deutschebank.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::{sync::LazyLock, time::SystemTime};
use actix_web::http::header::Date;
use base64::Engine;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::B... | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | full_file | 8,168 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RelayRetrieveBody {
/// The unique identifier for the Relay
#[serde(default)]
pub force_sync: bool,
} | crates/api_models/src/relay.rs | api_models | struct_definition | 28 | rust | RelayRetrieveBody | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/unified_translations.rs
Public structs: 4
//! Translations
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use time::PrimitiveDateTime;
use crate::schema::unified_translations;
#[derive(Clone, Debug, Queryable, Selectable, Identifiable)]
#[diesel(table_nam... | crates/diesel_models/src/unified_translations.rs | diesel_models | full_file | 350 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl<'a> KafkaPaymentIntent<'a> {
pub fn from_storage(intent: &'a PaymentIntent, infra_values: Option<Value>) -> Self {
let PaymentIntent {
id,
merchant_id,
status,
amount_details,
amount_captured,
customer_id,
description,
... | crates/router/src/services/kafka/payment_intent.rs | router | impl_block | 956 | rust | null | KafkaPaymentIntent | null | impl KafkaPaymentIntent | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AchBillingDetails
{
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "The Email ID for ACH billing",
"example": "example@me.com",
"nullable": true
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 72 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AchBillingDetails"
] | null | null | null | null |
Documentation: api-reference/v2/refunds/refunds--retrieve.mdx
# Type: Doc File
---
openapi: get /v2/refunds/{id}
--- | api-reference/v2/refunds/refunds--retrieve.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn retrieve_disputes_list(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<dispute_models::DisputeListGetConstraints>,
) -> HttpResponse {
let flow = Flow::DisputesList;
let payload = query.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&r... | crates/router/src/routes/disputes.rs | router | function_signature | 227 | rust | null | null | null | null | retrieve_disputes_list | null | null | null | null | null | null | null |
pub struct ThreeDsInvokeExempt {
pub three_d_s_server_trans_i_d: String,
pub message_version: String,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | ThreeDsInvokeExempt | null | null | null | null | null | null | null | null | null | null | null |
pub struct Archipel3DS {
#[serde(rename = "acsTransID")]
acs_trans_id: Option<Secret<String>>,
#[serde(rename = "dsTransID")]
ds_trans_id: Option<Secret<String>>,
#[serde(rename = "3DSRequestorName")]
three_ds_requestor_name: Option<Secret<String>>,
#[serde(rename = "3DSAuthDate")]
three... | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 204 | rust | Archipel3DS | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payments/accumulator.rs
Public functions: 1
Public structs: 11
use api_models::analytics::payments::{ErrorResult, PaymentMetricsBucketValue};
use bigdecimal::ToPrimitive;
use diesel_models::enums as storage_enums;
use router_env::logger;
use super::{distribution::PaymentDistributionRow, m... | crates/analytics/src/payments/accumulator.rs | analytics | full_file | 4,021 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/api/disputes_v2.rs
pub use hyperswitch_interfaces::api::disputes_v2::{
AcceptDisputeV2, DefendDisputeV2, DisputeSyncV2, DisputeV2, FetchDisputesV2, SubmitEvidenceV2,
};
| crates/router/src/types/api/disputes_v2.rs | router | full_file | 66 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/query.rs
Public functions: 21
Public structs: 3
use std::{fmt, marker::PhantomData};
use api_models::{
analytics::{
self as analytics_api,
api_event::ApiEventDimensions,
auth_events::{AuthEventDimensions, AuthEventFlows},
disputes::DisputeDimensions,
... | crates/analytics/src/query.rs | analytics | full_file | 6,945 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentExperienceTypes
{
"type": "object",
"required": [
"eligible_connectors"
],
"properties": {
"payment_experience_type": {
"allOf": [
{
"$ref": "#/components/schemas/PaymentExperience"
}
],
"nullable": true
},
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 143 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentExperienceTypes"
] | null | null | null | null |
pub async fn connector_sync_disputes(
state: SessionState,
merchant_context: domain::MerchantContext,
merchant_connector_id: String,
payload: disputes::DisputeFetchQueryData,
) -> RouterResponse<FetchDisputesResponse> {
let connector_id =
common_utils::id_type::MerchantConnectorAccountId::wr... | crates/router/src/core/disputes.rs | router | function_signature | 349 | rust | null | null | null | null | connector_sync_disputes | null | null | null | null | null | null | null |
pub fn parse_googlepay_token_safely(token_json_str: &str) -> FullyParsedGooglePayToken {
let mut result = FullyParsedGooglePayToken::default();
if let Ok(raw_token) = serde_json::from_str::<RawGooglePayToken>(token_json_str) {
result.signature = raw_token.signature;
result.protocol_version = ra... | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | function_signature | 247 | rust | null | null | null | null | parse_googlepay_token_safely | null | null | null | null | null | null | null |
impl api::PaymentSession for Helcim {} | crates/hyperswitch_connectors/src/connectors/helcim.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Helcim | api::PaymentSession for | impl api::PaymentSession for for Helcim | null | null | null | null | null | null | null | null |
pub struct RefundIdObject {
pub id: String,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | RefundIdObject | null | null | null | null | null | null | null | null | null | null | null |
pub trait PaymentInitiation: super::ConnectorCommon + PaymentInitiationRecipientCreate {} | crates/pm_auth/src/types/api/auth_service.rs | pm_auth | trait_definition | 17 | rust | null | null | PaymentInitiation | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Vgs {} | crates/hyperswitch_connectors/src/connectors/vgs.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Vgs | api::PaymentToken for | impl api::PaymentToken for for Vgs | null | null | null | null | null | null | null | null |
pub async fn profile_retrieve(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<(
common_utils::id_type::MerchantId,
common_utils::id_type::ProfileId,
) | crates/router/src/routes/profiles.rs | router | function_signature | 51 | rust | null | null | null | null | profile_retrieve | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsAuthorize;
let (payment_id, merchant_id, connector) = path.into_inner();
tracing::Span::current().record("payment_id", payment_id.get_string_repr());
let param_string = req.query_string();
let payload = payments::PaymentsRedirectResponseData {
resou... | crates/router/src/routes/payments.rs | router | impl_block | 288 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub async fn get_merchant_sankey(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<TimeRange>,
) -> impl Responder {
let flow = AnalyticsFlow::GetSankey;
let payload = json_payload.into_inner();
Box::pin(api::server_wrap(
fl... | crates/router/src/analytics.rs | router | function_signature | 231 | rust | null | null | null | null | get_merchant_sankey | null | null | null | null | null | null | null |
impl api::RefundSync for Cashtocode {} | crates/hyperswitch_connectors/src/connectors/cashtocode.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Cashtocode | api::RefundSync for | impl api::RefundSync for for Cashtocode | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/routing/routing--retrieve-default-config.mdx
# Type: Doc File
---
openapi: get /routing/default
--- | api-reference/v1/routing/routing--retrieve-default-config.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct EncryptedJsonType<T>(T); | crates/hyperswitch_domain_models/src/type_encryption.rs | hyperswitch_domain_models | struct_definition | 10 | rust | EncryptedJsonType | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_refund_event(event_code: &CheckoutWebhookEventType) -> bool {
matches!(
event_code,
CheckoutWebhookEventType::PaymentRefunded | CheckoutWebhookEventType::PaymentRefundDeclined
)
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | function_signature | 49 | rust | null | null | null | null | is_refund_event | null | null | null | null | null | null | null |
pub async fn delete_tokenized_data_core(
state: SessionState,
merchant_context: domain::MerchantContext,
token_id: &id_type::GlobalTokenId,
payload: api_models::tokenization::DeleteTokenDataRequest,
) -> RouterResponse<api_models::tokenization::DeleteTokenDataResponse> {
let db = &*state.store;
... | crates/router/src/core/tokenization.rs | router | function_signature | 525 | rust | null | null | null | null | delete_tokenized_data_core | null | null | null | null | null | null | null |
- **postman:** Update Postman collection files ([`1d739ee`](https://github.com/juspay/hyperswitch/commit/1d739eee5eca8051b4a1d6a91a656df646219964))
**Full Changelog:** [`2024.02.22.0...2024.02.23.0`](https://github.com/juspay/hyperswitch/compare/2024.02.22.0...2024.02.23.0)
- - -
## 2024.02.22.0
### Features
- **a... | CHANGELOG.md#chunk39 | null | doc_chunk | 8,100 | doc | 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.