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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
impl Default for RequiredFields {
fn default() -> Self {
Self::new(&BankRedirectConfig::default())
}
} | crates/payment_methods/src/configs/payment_connector_required_fields.rs | payment_methods | impl_block | 27 | rust | null | RequiredFields | Default for | impl Default for for RequiredFields | null | null | null | null | null | null | null | null |
impl IntentStatus {
/// Indicates whether the payment intent is in terminal state or not
pub fn is_in_terminal_state(self) -> bool {
match self {
Self::Succeeded
| Self::Failed
| Self::Cancelled
| Self::CancelledPostCapture
| Self::PartiallyCap... | crates/common_enums/src/enums.rs | common_enums | impl_block | 336 | rust | null | IntentStatus | null | impl IntentStatus | null | null | null | null | null | null | null | null |
pub fn build_pm_collect_link_status_html(
link_data: &GenericLinkStatusData,
) -> CustomResult<String, errors::ApiErrorResponse> {
let mut tera = Tera::default();
let mut context = Context::new();
// Insert dynamic context in CSS
let css_dynamic_context = "{{ color_scheme }}";
let css_template ... | crates/router/src/services/api/generic_link_response.rs | router | function_signature | 495 | rust | null | null | null | null | build_pm_collect_link_status_html | null | null | null | null | null | null | null |
impl api::Refund for Payme {} | crates/hyperswitch_connectors/src/connectors/payme.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Payme | api::Refund for | impl api::Refund for for Payme | null | null | null | null | null | null | null | null |
impl ErrorResponse {
fn get_not_implemented() -> Self {
Self {
code: "IR_00".to_string(),
message: "This API is under development and will be made available soon.".to_string(),
reason: None,
status_code: http::StatusCode::INTERNAL_SERVER_ERROR.as_u16(),
... | crates/pm_auth/src/types.rs | pm_auth | impl_block | 73 | rust | null | ErrorResponse | null | impl ErrorResponse | null | null | null | null | null | null | null | null |
pub fn payment_status() {} | crates/openapi/src/routes/payments.rs | openapi | function_signature | 6 | rust | null | null | null | null | payment_status | null | null | null | null | null | null | null |
impl ConnectorValidation for Nexinets {
fn validate_mandate_payment(
&self,
pm_type: Option<enums::PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
let mandate_supported_pmd = std::collections::HashSet::from([
PaymentMeth... | crates/hyperswitch_connectors/src/connectors/nexinets.rs | hyperswitch_connectors | impl_block | 140 | rust | null | Nexinets | ConnectorValidation for | impl ConnectorValidation for for Nexinets | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/customers/customers--create.mdx
# Type: Doc File
---
openapi: post /customers
--- | api-reference/v1/customers/customers--create.mdx | null | doc_file | 30 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/storage_impl/src/tokenization.rs
#[cfg(all(feature = "v2", feature = "tokenization_v2"))]
use common_utils::{errors::CustomResult, types::keymanager::KeyManagerState};
#[cfg(all(feature = "v2", feature = "tokenization_v2"))]
use diesel_models::tokenization as tokenization_diesel;
#[cfg(all(feature = "v2",... | crates/storage_impl/src/tokenization.rs | storage_impl | full_file | 1,875 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiservOrder {
intent: FiservIntent,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | FiservOrder | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
result: NoonRefundResponseResult,
result_code: u32,
class_description: String,
message: String,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/organization/organization--retrieve.mdx
# Type: Doc File
---
openapi: get /v2/organizations/{id}
--- | api-reference/v2/organization/organization--retrieve.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Wise {} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Wise | api::PaymentVoid for | impl api::PaymentVoid for for Wise | null | null | null | null | null | null | null | null |
pub trait TrackerPostUpdateObjects<Flow, FlowRequest, D> {
fn get_payment_intent_update(
&self,
payment_data: &D,
storage_scheme: common_enums::MerchantStorageScheme,
) -> PaymentIntentUpdate;
fn get_payment_attempt_update(
&self,
payment_data: &D,
storage_sc... | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | trait_definition | 208 | rust | null | null | TrackerPostUpdateObjects | null | null | null | null | null | null | null | null | null |
pub struct PrimaryBusinessDetails {
#[schema(value_type = CountryAlpha2)]
pub country: api_enums::CountryAlpha2,
#[schema(example = "food")]
pub business: String,
} | crates/api_models/src/admin.rs | api_models | struct_definition | 43 | rust | PrimaryBusinessDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct DefendDisputeResponse {
pub dispute_status: api_models::enums::DisputeStatus,
pub connector_status: Option<String>,
} | crates/hyperswitch_domain_models/src/router_response_types/disputes.rs | hyperswitch_domain_models | struct_definition | 31 | rust | DefendDisputeResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn generate_card_from_details(
card_number: String,
card_exp_year: String,
card_exp_month: String,
card_cvv: String,
) -> errors::RouterResult<domain::Card> {
Ok(domain::Card {
card_number: card_number
.parse::<cards::CardNumber>()
.change_context(errors::ApiError... | crates/router/src/utils/verify_connector.rs | router | function_signature | 193 | rust | null | null | null | null | generate_card_from_details | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Noon {} | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Noon | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Noon | null | null | null | null | null | null | null | null |
pub fn requires_order_creation_before_payment(self, payment_method: PaymentMethod) -> bool {
matches!((self, payment_method), (Self::Razorpay, PaymentMethod::Upi))
} | crates/common_enums/src/connector_enums.rs | common_enums | function_signature | 42 | rust | null | null | null | null | requires_order_creation_before_payment | null | null | null | null | null | null | null |
impl ThemeInterface for KafkaStore {
async fn insert_theme(
&self,
theme: storage::theme::ThemeNew,
) -> CustomResult<storage::theme::Theme, errors::StorageError> {
self.diesel_store.insert_theme(theme).await
}
async fn find_theme_by_theme_id(
&self,
theme_id: St... | crates/router/src/db/kafka_store.rs | router | impl_block | 435 | rust | null | KafkaStore | ThemeInterface for | impl ThemeInterface for for KafkaStore | null | null | null | null | null | null | null | null |
/// Get a merchant id with the const value of `MERCHANT_ID_NOT_FOUND`
pub fn get_merchant_id_not_found() -> Self {
let alphanumeric_id = AlphaNumericId::new_unchecked("MERCHANT_ID_NOT_FOUND".to_string());
let length_id = LengthId::new_unchecked(alphanumeric_id);
Self(length_id)
} | crates/common_utils/src/id_type/merchant.rs | common_utils | function_signature | 74 | rust | null | null | null | null | get_merchant_id_not_found | null | null | null | null | null | null | null |
pub struct PaypalSellerPayableBreakdown {
pub total_refunded_amount: OrderAmount,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | PaypalSellerPayableBreakdown | null | null | null | null | null | null | null | null | null | null | null |
pub struct ProcessorResponseDetails {
pub approval_status: Option<String>,
pub approval_code: Option<String>,
pub reference_number: Option<String>,
pub processor: Option<String>,
pub host: Option<String>,
pub network_routed: Option<String>,
pub network_international_id: Option<String>,
p... | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 133 | rust | ProcessorResponseDetails | null | null | null | null | null | null | null | null | null | null | null |
impl AuthEventMetricsBucketIdentifier {
#[allow(clippy::too_many_arguments)]
pub fn new(
authentication_status: Option<AuthenticationStatus>,
trans_status: Option<TransactionStatus>,
authentication_type: Option<DecoupledAuthenticationType>,
error_message: Option<String>,
... | crates/api_models/src/analytics/auth_events.rs | api_models | impl_block | 376 | rust | null | AuthEventMetricsBucketIdentifier | null | impl AuthEventMetricsBucketIdentifier | null | null | null | null | null | null | null | null |
pub async fn sso_sign(
state: SessionState,
request: user_api::SsoSignInRequest,
user_from_single_purpose_token: Option<auth::UserFromSinglePurposeToken>,
) -> UserResponse<user_api::TokenResponse> {
let authentication_method_id =
utils::user::get_sso_id_from_redis(&state, request.state.clone())... | crates/router/src/core/user.rs | router | function_signature | 642 | rust | null | null | null | null | sso_sign | null | null | null | null | null | null | null |
pub struct BarclaycardConsumerAuthInformationEnrollmentResponse {
access_token: Option<Secret<String>>,
step_up_url: Option<String>,
//Added to segregate the three_ds_data in a separate struct
#[serde(flatten)]
validate_response: BarclaycardConsumerAuthValidateResponse,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 63 | rust | BarclaycardConsumerAuthInformationEnrollmentResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_connector_customer_id_from_feature_metadata(&self) -> Option<String> {
self.feature_metadata
.as_ref()
.and_then(|metadata| metadata.payment_revenue_recovery_metadata.as_ref())
.map(|recovery_metadata| {
recovery_metadata
.billin... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 77 | rust | null | null | null | null | get_connector_customer_id_from_feature_metadata | null | null | null | null | null | null | null |
pub struct MerchantConnectorResponse {
/// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking.
#[schema(value_type = ConnectorType, example = "payment_processor")]
pub connector_type: api_enums::ConnectorType,
/// Name of the Connector
#[schema(valu... | crates/api_models/src/admin.rs | api_models | struct_definition | 781 | rust | MerchantConnectorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl UserDeprecated {
pub fn server(state: AppState) -> Scope {
// TODO: Deprecated. Remove this in favour of /v2/users
let mut route = web::scope("/v2/user").app_data(web::Data::new(state));
route = route.service(
web::resource("/create_merchant")
.route(web::po... | crates/router/src/routes/app.rs | router | impl_block | 295 | rust | null | UserDeprecated | null | impl UserDeprecated | null | null | null | null | null | null | null | null |
impl api::UasPreAuthentication for UnifiedAuthenticationService {} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 12 | rust | null | UnifiedAuthenticationService | api::UasPreAuthentication for | impl api::UasPreAuthentication for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
impl Visit for Storage<'_> {
/// A i64.
fn record_i64(&mut self, field: &Field, value: i64) {
self.record_value(field.name(), serde_json::Value::from(value));
}
/// A u64.
fn record_u64(&mut self, field: &Field, value: u64) {
self.record_value(field.name(), serde_json::Value::from(v... | crates/router_env/src/logger/storage.rs | router_env | impl_block | 376 | rust | null | Storage | Visit for | impl Visit for for Storage | null | null | null | null | null | null | null | null |
pub struct BamboraapacCaptureResponse {
body: CaptureBodyResponse,
} | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | BamboraapacCaptureResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RawSecret {} | crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs | hyperswitch_interfaces | struct_definition | 5 | rust | RawSecret | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_payment_link_response_from_id(
state: &SessionState,
payment_link_id: &str,
) -> CustomResult<api_models::payments::PaymentLinkResponse, errors::ApiErrorResponse> {
let db = &*state.store;
let payment_link_object = db
.find_payment_link_by_payment_link_id(payment_link_id)
... | crates/router/src/core/payments.rs | router | function_signature | 142 | rust | null | null | null | null | get_payment_link_response_from_id | null | null | null | null | null | null | null |
File: crates/router/src/types/api/payments.rs
#[cfg(feature = "v2")]
pub use api_models::payments::{
PaymentAttemptListRequest, PaymentAttemptListResponse, PaymentsConfirmIntentRequest,
PaymentsCreateIntentRequest, PaymentsIntentResponse, PaymentsUpdateIntentRequest,
RecoveryPaymentsCreate,
};
#[cfg(featur... | crates/router/src/types/api/payments.rs | router | full_file | 1,914 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ThreeDsDecisionRuleExecuteRequest {
/// The ID of the routing algorithm to be executed.
#[schema(value_type = String)]
pub routing_id: common_utils::id_type::RoutingId,
/// Data related to the payment.
pub payment: PaymentData,
/// Optional metadata about the payment method.
pub p... | crates/api_models/src/three_ds_decision_rule.rs | api_models | struct_definition | 137 | rust | ThreeDsDecisionRuleExecuteRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct DecisionManagerRequest {
pub name: Option<String>,
pub program: Option<Program<common_types::payments::ConditionalConfigs>>,
} | crates/api_models/src/conditional_configs.rs | api_models | struct_definition | 30 | rust | DecisionManagerRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct SqlxClient {
pool: Pool<Postgres>,
} | crates/analytics/src/sqlx.rs | analytics | struct_definition | 14 | rust | SqlxClient | null | null | null | null | null | null | null | null | null | null | null |
pub trait EuclidAnalysable: Sized {
fn get_dir_value_for_analysis(&self, rule_name: String) -> Vec<(dir::DirValue, Metadata)>;
} | crates/euclid/src/dssa/types.rs | euclid | trait_definition | 37 | rust | null | null | EuclidAnalysable | null | null | null | null | null | null | null | null | null |
pub fn new(total_count: i64, events: Vec<EventListItemResponse>) -> Self {
Self {
events,
total_count,
}
} | crates/api_models/src/webhook_events.rs | api_models | function_signature | 34 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub async fn update_gsm_rule(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<gsm_api_types::GsmUpdateRequest>,
) -> impl Responder {
let payload = json_payload.into_inner();
let flow = Flow::GsmRuleUpdate;
Box::pin(api::server_wrap(
flow,
state.clone(),
... | crates/router/src/routes/gsm.rs | router | function_signature | 132 | rust | null | null | null | null | update_gsm_rule | null | null | null | null | null | null | null |
pub struct TokenDataResponse {
/// The unique identifier of the payment method.
#[schema(value_type = String, example = "12345_pm_01926c58bc6e77c09e809964e72af8c8")]
pub payment_method_id: id_type::GlobalPaymentMethodId,
/// token type of the payment method
#[schema(value_type = TokenDataType)]
... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 128 | rust | TokenDataResponse | null | null | null | null | null | null | null | null | null | null | null |
impl<T: KafkaMessage> KafkaMessage for KafkaConsolidatedEvent<'_, T> {
fn key(&self) -> String {
self.log.event.key()
}
fn event_type(&self) -> EventType {
EventType::Consolidated
}
fn creation_timestamp(&self) -> Option<i64> {
self.log.event.creation_timestamp()
}
} | crates/router/src/services/kafka.rs | router | impl_block | 79 | rust | null | KafkaConsolidatedEvent | KafkaMessage for | impl KafkaMessage for for KafkaConsolidatedEvent | null | null | null | null | null | null | null | null |
pub struct RazorpayRefundResponse {
pub id: String,
pub status: RazorpayRefundStatus,
} | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | RazorpayRefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Opennode {
fn get_webhook_source_verification_algorithm(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::HmacSha256))
}
fn get_webhook... | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | impl_block | 780 | rust | null | Opennode | IncomingWebhook for | impl IncomingWebhook for for Opennode | null | null | null | null | null | null | null | null |
pub async fn forgot_password(
state: SessionState,
request: user_api::ForgotPasswordRequest,
auth_id: Option<String>,
theme_id: Option<String>,
) -> UserResponse<()> {
let user_email = domain::UserEmail::from_pii_email(request.email)?;
utils::user::validate_email_domain_auth_type_using_db(
... | crates/router/src/core/user.rs | router | function_signature | 377 | rust | null | null | null | null | forgot_password | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsAggregate;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
payload,
|state, auth: auth::AuthenticationData, req, _| {
let merchant_context = domain::MerchantContext::NormalMerchant... | crates/router/src/routes/payments.rs | router | impl_block | 146 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PollStatus
{
"type": "string",
"enum": [
"pending",
"completed",
"not_found"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 41 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PollStatus"
] | null | null | null | null |
OpenAPI Block Path: components.schemas.Card
{
"type": "object",
"required": [
"card_number",
"card_exp_month",
"card_exp_year",
"card_holder_name",
"card_cvc"
],
"properties": {
"card_number": {
"type": "string",
"description": "The card number",
"example": "42424242424... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 465 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"Card"
] | null | null | null | null |
pub fn new(table: AnalyticsCollection) -> Self {
Self {
columns: Default::default(),
filters: Default::default(),
group_by: Default::default(),
order_by: Default::default(),
having: Default::default(),
limit_by: Default::default(),
... | crates/analytics/src/query.rs | analytics | function_signature | 108 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl SubmitEvidence for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 6 | rust | null | Stripe | SubmitEvidence for | impl SubmitEvidence for for Stripe | null | null | null | null | null | null | null | null |
pub struct FiuuWebhookSignature {
pub skey: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | FiuuWebhookSignature | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsCaptureRequest {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_amount: StringMajorUnit,
pub ssl_txn_id: String,
} | crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | hyperswitch_connectors | struct_definition | 59 | rust | PaymentsCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/account/{account_id}/business_profile/{profile_id}/dynamic_routing/elimination/toggle"
{
"post": {
"tags": [
"Routing"
],
"summary": "Routing - Toggle elimination routing for profile",
"description": "Create a elimination based dynamic routing algorithm",
"operati... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 427 | .json | null | null | null | null | null | openapi_spec | paths | [
"/account/{account_id}/business_profile/{profile_id}/dynamic_routing/elimination/toggle"
] | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/opennode.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::enums;
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestCont... | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | full_file | 3,902 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for RouterHealthCheckResponse {} | crates/api_models/src/health_check.rs | api_models | impl_block | 15 | rust | null | RouterHealthCheckResponse | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for RouterHealthCheckResponse | null | null | null | null | null | null | null | null |
pub fn new(
currency: Option<Currency>,
refund_status: Option<String>,
connector: Option<String>,
refund_type: Option<String>,
profile_id: Option<String>,
refund_reason: Option<String>,
refund_error_message: Option<String>,
normalized_time_range: TimeRange... | crates/api_models/src/analytics/refunds.rs | api_models | function_signature | 118 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl IncomingWebhook for ConnectorEnum {
fn get_webhook_body_decoding_algorithm(
&self,
request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::DecodeMessage + Send>, errors::ConnectorError> {
match self {
Self::Old(connector) => connector.get_webhook_b... | crates/hyperswitch_interfaces/src/connector_integration_interface.rs | hyperswitch_interfaces | impl_block | 2,021 | rust | null | ConnectorEnum | IncomingWebhook for | impl IncomingWebhook for for ConnectorEnum | null | null | null | null | null | null | null | null |
pub fn new(
country: String,
hubspot_form_id: String,
firstname: Secret<String>,
email: Secret<String>,
company_name: String,
website: String,
) -> Self {
Self {
use_hubspot: true,
country,
hubspot_form_id,
first... | crates/external_services/src/hubspot_proxy.rs | external_services | function_signature | 101 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub fn set_notification_u_r_l(mut self, notification_u_r_l: String) -> Self {
self.notification_u_r_l = Some(notification_u_r_l);
self
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | function_signature | 38 | rust | null | null | null | null | set_notification_u_r_l | null | null | null | null | null | null | null |
impl ConnectorCommon for Dwolla {
fn id(&self) -> &'static str {
"dwolla"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/vnd.dwolla.v1.hal+json"
}
fn base_url<'a>(&self... | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | 340 | rust | null | Dwolla | ConnectorCommon for | impl ConnectorCommon for for Dwolla | null | null | null | null | null | null | null | null |
pub struct MerchantAccountNew {
pub merchant_id: common_utils::id_type::MerchantId,
pub merchant_name: Option<Encryption>,
pub merchant_details: Option<Encryption>,
pub return_url: Option<String>,
pub webhook_details: Option<crate::business_profile::WebhookDetails>,
pub sub_merchants_enabled: Op... | crates/diesel_models/src/merchant_account.rs | diesel_models | struct_definition | 379 | rust | MerchantAccountNew | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ElementSize
{
"oneOf": [
{
"type": "object",
"required": [
"Variants"
],
"properties": {
"Variants": {
"$ref": "#/components/schemas/SizeVariants"
}
}
},
{
"type": "object",
"required": [
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 191 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ElementSize"
] | null | null | null | null |
impl events::ApiEventMetric for DecisionManagerRecord {
fn get_api_event_type(&self) -> Option<events::ApiEventsType> {
Some(events::ApiEventsType::Routing)
}
} | crates/api_models/src/conditional_configs.rs | api_models | impl_block | 43 | rust | null | DecisionManagerRecord | events::ApiEventMetric for | impl events::ApiEventMetric for for DecisionManagerRecord | null | null | null | null | null | null | null | null |
pub struct DeutschebankCaptureRequest {
changed_amount: MinorUnit,
kind: DeutschebankTransactionKind,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | DeutschebankCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct NuveiVoidRequest {
pub merchant_id: Secret<String>,
pub merchant_site_id: Secret<String>,
pub client_unique_id: String,
pub related_transaction_id: String,
pub time_stamp: String,
pub checksum: Secret<String>,
pub client_request_id: String,
} | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | struct_definition | 64 | rust | NuveiVoidRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApplePayData {
applepay_payment_data: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | ApplePayData | null | null | null | null | null | null | null | null | null | null | null |
pub fn handle_webhook_response(
payment_information: WebhookPaymentInformation,
status_code: u16,
) -> CustomResult<
(
enums::AttemptStatus,
Option<ErrorResponse>,
PaymentsResponseData,
),
errors::ConnectorError,
> {
let status = enums::AttemptStatus::try_from(payment_inf... | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | function_signature | 349 | rust | null | null | null | null | handle_webhook_response | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Stripe | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Stripe | null | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for WebhookDeliveryRetryRequestInternal {
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> {
Some(common_utils::events::ApiEventsType::Events {
merchant_id: self.merchant_id.clone(),
})
}
} | crates/api_models/src/webhook_events.rs | api_models | impl_block | 67 | rust | null | WebhookDeliveryRetryRequestInternal | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for WebhookDeliveryRetryRequestInternal | null | null | null | null | null | null | null | null |
impl Deref for NewUserPassword {
type Target = UserPassword;
fn deref(&self) -> &Self::Target {
&self.password
}
} | crates/router/src/types/domain/user.rs | router | impl_block | 36 | rust | null | NewUserPassword | Deref for | impl Deref for for NewUserPassword | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/api/vault.rs
//! Vault interface
use hyperswitch_domain_models::{
router_flow_types::vault::{
ExternalVaultCreateFlow, ExternalVaultDeleteFlow, ExternalVaultInsertFlow,
ExternalVaultRetrieveFlow,
},
router_request_types::VaultRequestData,
router_... | crates/hyperswitch_interfaces/src/api/vault.rs | hyperswitch_interfaces | full_file | 252 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct JpmorganAuthUpdateResponse {
pub access_token: Secret<String>,
pub scope: String,
pub token_type: String,
pub expires_in: i64,
} | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | JpmorganAuthUpdateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct ErrorDistributionAccumulator {
pub error_vec: Vec<ErrorDistributionRow>,
} | crates/analytics/src/payments/accumulator.rs | analytics | struct_definition | 20 | rust | ErrorDistributionAccumulator | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_payment_connectors(
state: SessionState,
merchant_id: id_type::MerchantId,
profile_id_list: Option<Vec<id_type::ProfileId>>,
) -> RouterResponse<Vec<api_models::admin::MerchantConnectorListResponse>> {
let store = state.store.as_ref();
let key_manager_state = &(&state).into();
... | crates/router/src/core/admin.rs | router | function_signature | 356 | rust | null | null | null | null | list_payment_connectors | null | null | null | null | null | null | null |
impl api::RefundSync for Fiservemea {} | crates/hyperswitch_connectors/src/connectors/fiservemea.rs | hyperswitch_connectors | impl_block | 13 | rust | null | Fiservemea | api::RefundSync for | impl api::RefundSync for for Fiservemea | null | null | null | null | null | null | null | null |
File: crates/router/src/core/refunds.rs
Public functions: 24
#[cfg(feature = "olap")]
use std::collections::HashMap;
#[cfg(feature = "olap")]
use api_models::admin::MerchantConnectorInfo;
use common_utils::{
ext_traits::{AsyncExt, StringExt},
types::{ConnectorTransactionId, MinorUnit},
};
use diesel_models::... | crates/router/src/core/refunds.rs#chunk0 | router | chunk | 8,186 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Paybox {} | crates/hyperswitch_connectors/src/connectors/paybox.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paybox | api::PaymentSession for | impl api::PaymentSession for for Paybox | null | null | null | null | null | null | null | null |
impl api::RefundSync for Archipel {} | crates/hyperswitch_connectors/src/connectors/archipel.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Archipel | api::RefundSync for | impl api::RefundSync for for Archipel | null | null | null | null | null | null | null | null |
pub struct DebitorAccount {
/// Account number
pub account: AccountNumber,
/// Own message to be on the debtor's transaction.
/// Max length 20. NB: This field is not supported for SEPA and Norwegian payments and will be ignored.
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Opt... | crates/hyperswitch_connectors/src/connectors/nordea/requests.rs | hyperswitch_connectors | struct_definition | 78 | rust | DebitorAccount | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_metadata_as_secret(
&self,
) -> CustomResult<Option<pii::SecretSerdeValue>, errors::ParsingError> {
self.metadata
.as_ref()
.map(|metadata| metadata.encode_to_value().map(Secret::new))
.transpose()
} | crates/api_models/src/admin.rs | api_models | function_signature | 63 | rust | null | null | null | null | get_metadata_as_secret | null | null | null | null | null | null | null |
pub fn next_action_invoke_hidden_frame(
payment_attempt: &storage::PaymentAttempt,
) -> RouterResult<Option<api_models::payments::PaymentsConnectorThreeDsInvokeData>> {
let connector_three_ds_invoke_data: Option<
Result<api_models::payments::PaymentsConnectorThreeDsInvokeData, _>,
> = payment_attemp... | crates/router/src/core/payments/transformers.rs | router | function_signature | 123 | rust | null | null | null | null | next_action_invoke_hidden_frame | null | null | null | null | null | null | null |
pub fn new(metadata: &serde_json::Value) -> Self {
let metadata_as_string = metadata.to_string();
let hash_map: std::collections::BTreeMap<String, serde_json::Value> =
serde_json::from_str(&metadata_as_string).unwrap_or(std::collections::BTreeMap::new());
let inner = hash_map
... | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | function_signature | 187 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub fn extract_card_network(&self) -> Option<common_enums::CardNetwork> {
todo!()
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 25 | rust | null | null | null | null | extract_card_network | null | null | null | null | null | null | null |
impl Trustpay {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
amount_converter_to_float_major_unit: &FloatMajorUnitForConnector,
amount_converter_to_string_minor_unit: &StringMinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/trustpay.rs | hyperswitch_connectors | impl_block | 64 | rust | null | Trustpay | null | impl Trustpay | null | null | null | null | null | null | null | null |
pub struct DisputeListFilters {
/// The map of available connector filters, where the key is the connector name and the value is a list of MerchantConnectorInfo instances
pub connector: HashMap<String, Vec<MerchantConnectorInfo>>,
/// The list of available currency filters
pub currency: Vec<Currency>,
... | crates/api_models/src/disputes.rs | api_models | struct_definition | 108 | rust | DisputeListFilters | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentLinkBackgroundImageConfig
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "URL of the image",
"example": "https://hyperswitch.io/favicon.ico"
},
"position": {
"allOf": [
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 155 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentLinkBackgroundImageConfig"
] | null | null | null | null |
pub struct ConnectorParamsWithFileUploadUrl {
/// base url
pub base_url: String,
/// base url for file upload
pub base_url_file_upload: String,
} | crates/hyperswitch_domain_models/src/connector_endpoints.rs | hyperswitch_domain_models | struct_definition | 39 | rust | ConnectorParamsWithFileUploadUrl | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayoutLink {
pub link_id: String,
pub primary_reference: common_utils::id_type::PayoutId,
pub merchant_id: common_utils::id_type::MerchantId,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")... | crates/diesel_models/src/generic_link.rs | diesel_models | struct_definition | 172 | rust | PayoutLink | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Bankofamerica {} | crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Bankofamerica | api::RefundExecute for | impl api::RefundExecute for for Bankofamerica | null | null | null | null | null | null | null | null |
pub async fn get_token_from_tokenization_service(
state: &routes::SessionState,
network_token_requestor_ref_id: String,
pm_data: &domain::PaymentMethod,
) -> errors::RouterResult<domain::NetworkTokenData> {
let token_response =
if let Some(network_tokenization_service) = &state.conf.network_toke... | crates/router/src/core/payment_methods/network_tokenization.rs | router | function_signature | 529 | rust | null | null | null | null | get_token_from_tokenization_service | null | null | null | null | null | null | null |
impl Responder {
// safety: This shouldn't panic owing to the data type
#[allow(clippy::expect_used)]
let payload = json_payload
.into_inner()
.to_vec()
.pop()
.expect("Couldn't get GetSdkEventMetricRequest");
let flow = AnalyticsFlow::GetS... | crates/router/src/analytics.rs | router | impl_block | 190 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/routing/routing--update-default-for-profile.mdx
# Type: Doc File
---
openapi: post /routing/default/profile/{profile_id}
--- | api-reference/v1/routing/routing--update-default-for-profile.mdx | null | doc_file | 38 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl ApiEventMetric for PollResponse {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Poll {
poll_id: self.poll_id.clone(),
})
}
} | crates/api_models/src/poll.rs | api_models | impl_block | 47 | rust | null | PollResponse | ApiEventMetric for | impl ApiEventMetric for for PollResponse | null | null | null | null | null | null | null | null |
/// Checks if retry with alternate network is possible.
pub fn is_alternate_network_possible(&self) -> bool {
self.alternate_network_possible
} | crates/common_types/src/domain.rs | common_types | function_signature | 34 | rust | null | null | null | null | is_alternate_network_possible | null | null | null | null | null | null | null |
pub async fn delete_locker_payment_method_by_lookup_key(
state: &routes::SessionState,
lookup_key: &Option<String>,
) {
if let Some(lookup_key) = lookup_key {
delete_tokenized_data(state, lookup_key)
.await
.map(|_| logger::info!("Card From locker ... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 103 | rust | null | null | null | null | delete_locker_payment_method_by_lookup_key | null | null | null | null | null | null | null |
impl Affirm {
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/affirm.rs | hyperswitch_connectors | impl_block | 33 | rust | null | Affirm | null | impl Affirm | null | null | null | null | null | null | null | null |
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(
item: &PayboxRouterData<&types::PaymentsCompleteAuthorizeRouterData>,
) -> Result<Self, Self::Error> {
let redirect_response = item.router_data.request.redirect_response.clone().ok_or(
errors::ConnectorError::... | crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs#chunk1 | hyperswitch_connectors | chunk | 1,497 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Juspaythreedsserver {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs | hyperswitch_connectors | impl_block | 39 | rust | null | Juspaythreedsserver | null | impl Juspaythreedsserver | null | null | null | null | null | null | null | null |
pub struct PaymentMethodDataWithId {
pub payment_method: Option<enums::PaymentMethod>,
pub payment_method_data: Option<domain::PaymentMethodData>,
pub payment_method_id: Option<String>,
} | crates/router/src/types/storage/payment_method.rs | router | struct_definition | 44 | rust | PaymentMethodDataWithId | 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.