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 async fn retrieve_linked_routing_config(
state: SessionState,
merchant_context: domain::MerchantContext,
authentication_profile_id: Option<common_utils::id_type::ProfileId>,
query_params: routing_types::RoutingRetrieveLinkQuery,
transaction_type: enums::TransactionType,
) -> RouterResponse<routi... | crates/router/src/core/routing.rs | router | function_signature | 1,068 | rust | null | null | null | null | retrieve_linked_routing_config | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PayoutStatus
{
"type": "string",
"enum": [
"success",
"failed",
"cancelled",
"initiated",
"expired",
"reversed",
"pending",
"ineligible",
"requires_creation",
"requires_confirmation",
"requires_payout_method_data",
"requires_fulf... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 96 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PayoutStatus"
] | null | null | null | null |
File: crates/router/src/services/card_testing_guard.rs
Public functions: 3
use std::sync::Arc;
use error_stack::ResultExt;
use redis_interface::RedisConnectionPool;
use crate::{
core::errors::{ApiErrorResponse, RouterResult},
routes::app::SessionStateInfo,
};
fn get_redis_connection<A: SessionStateInfo>(st... | crates/router/src/services/card_testing_guard.rs | router | full_file | 481 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn create_pm_additional_data_update(
pmd: Option<&domain::PaymentMethodVaultingData>,
state: &SessionState,
key_store: &domain::MerchantKeyStore,
vault_id: Option<String>,
vault_fingerprint_id: Option<String>,
payment_method: &domain::PaymentMethod,
connector_token_details: Option<... | crates/router/src/core/payment_methods.rs | router | function_signature | 603 | rust | null | null | null | null | create_pm_additional_data_update | null | null | null | null | null | null | null |
impl NoParams {
/// function to satisfy connector param validation macro
pub fn validate(&self, _parent_field: &str) -> Result<(), ApplicationError> {
Ok(())
}
} | crates/hyperswitch_domain_models/src/connector_endpoints.rs | hyperswitch_domain_models | impl_block | 41 | rust | null | NoParams | null | impl NoParams | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ProfileId
{
"type": "string",
"description": "A type for profile_id that can be used for business profile ids"
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 39 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ProfileId"
] | null | null | null | null |
impl ConnectorCommon for Xendit {
fn id(&self) -> &'static str {
"xendit"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &'a ... | crates/hyperswitch_connectors/src/connectors/xendit.rs | hyperswitch_connectors | impl_block | 429 | rust | null | Xendit | ConnectorCommon for | impl ConnectorCommon for for Xendit | null | null | null | null | null | null | null | null |
pub struct PaypalThreeDsResponse {
id: String,
status: PaypalOrderStatus,
links: Vec<PaypalLinks>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | PaypalThreeDsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub trait ApiLogsFilterAnalytics: LoadRow<ApiLogsResult> {} | crates/analytics/src/api_event/events.rs | analytics | trait_definition | 15 | rust | null | null | ApiLogsFilterAnalytics | null | null | null | null | null | null | null | null | null |
impl api::Payment for Wise {} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Wise | api::Payment for | impl api::Payment for for Wise | null | null | null | null | null | null | null | null |
pub struct StaxCaptureRequest {
total: Option<f64>,
} | crates/hyperswitch_connectors/src/connectors/stax/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | StaxCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/routing/default/profile"
{
"get": {
"tags": [
"Routing"
],
"summary": "Routing - Retrieve Default For Profile",
"description": "Retrieve default config for profiles",
"operationId": "Retrieve default configs for all profiles",
"responses": {
"200": {
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 192 | .json | null | null | null | null | null | openapi_spec | paths | [
"/routing/default/profile"
] | null | null | null | null |
pub struct CreateConnectorCustomer; | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | 6 | rust | CreateConnectorCustomer | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/payment-methods/list-payment-methods-for-a-customer.mdx
# Type: Doc File
---
openapi: get /customers/{customer_id}/payment_methods
--- | api-reference/v1/payment-methods/list-payment-methods-for-a-customer.mdx | null | doc_file | 41 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl AwsFileStorageClient {
/// Creates a new AWS S3 file storage client.
pub(super) async fn new(config: &AwsFileStorageConfig) -> Self {
let region_provider = RegionProviderChain::first_try(Region::new(config.region.clone()));
let sdk_config = aws_config::from_env().region(region_provider).loa... | crates/external_services/src/file_storage/aws_s3.rs | external_services | impl_block | 414 | rust | null | AwsFileStorageClient | null | impl AwsFileStorageClient | null | null | null | null | null | null | null | null |
pub async fn get_client_secret_or_add_payment_method_for_migration(
state: &state::PaymentMethodsState,
req: pm_api::PaymentMethodCreate,
merchant_context: &merchant_context::MerchantContext,
migration_status: &mut migration::RecordMigrationStatusBuilder,
controller: &dyn PaymentMethodsController,
)... | crates/payment_methods/src/core/migration/payment_methods.rs | payment_methods | function_signature | 693 | rust | null | null | null | null | get_client_secret_or_add_payment_method_for_migration | null | null | null | null | null | null | null |
pub async fn insert_role_in_blacklist(state: &SessionState, role_id: &str) -> UserResult<()> {
let role_blacklist_key = format!("{ROLE_BLACKLIST_PREFIX}{role_id}");
let expiry =
expiry_to_i64(JWT_TOKEN_TIME_IN_SECS).change_context(UserErrors::InternalServerError)?;
let redis_conn = get_redis_connect... | crates/router/src/services/authentication/blacklist.rs | router | function_signature | 161 | rust | null | null | null | null | insert_role_in_blacklist | null | null | null | null | null | null | null |
impl api::RefundExecute for Globalpay {} | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Globalpay | api::RefundExecute for | impl api::RefundExecute for for Globalpay | null | null | null | null | null | null | null | null |
pub async fn add_process_sync_task(
db: &dyn StorageInterface,
payment_attempt: &storage::PaymentAttempt,
schedule_time: time::PrimitiveDateTime,
) -> CustomResult<(), errors::StorageError> {
let tracking_data = api::PaymentsRetrieveRequest {
force_sync: true,
merchant_id: Some(payment_a... | crates/router/src/core/payments.rs | router | function_signature | 249 | rust | null | null | null | null | add_process_sync_task | null | null | null | null | null | null | null |
pub struct SellerStatusProducts {
pub name: String,
pub vetting_status: Option<VettingStatus>,
} | crates/router/src/types/api/connector_onboarding/paypal.rs | router | struct_definition | 24 | rust | SellerStatusProducts | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::RelayRetrieve;
let relay_retrieve_request = api_models::relay::RelayRetrieveRequest {
force_sync: query_params.force_sync,
id: path.into_inner(),
};
Box::pin(api::server_wrap(
flow,
state,
&req,
relay_retrieve_request,
... | crates/router/src/routes/relay.rs | router | impl_block | 227 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct DummyConnectorPaymentAttempt {
pub timestamp: PrimitiveDateTime,
pub attempt_id: String,
pub payment_id: common_utils::id_type::PaymentId,
pub payment_request: DummyConnectorPaymentRequest,
} | crates/router/src/routes/dummy_connector/types.rs | router | struct_definition | 46 | rust | DummyConnectorPaymentAttempt | null | null | null | null | null | null | null | null | null | null | null |
pub struct PlacetopayPsyncRequest {
auth: PlacetopayAuth,
internal_reference: u64,
} | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | PlacetopayPsyncRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PoRecipient; | crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs | hyperswitch_domain_models | struct_definition | 5 | rust | PoRecipient | null | null | null | null | null | null | null | null | null | null | null |
pub struct ExternalSignoutTokenRequest {
pub token: Secret<String>,
} | crates/api_models/src/external_service_auth.rs | api_models | struct_definition | 16 | rust | ExternalSignoutTokenRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/openapi/src/routes/payment_link.rs
Public functions: 1
/// Payments Link - Retrieve
///
/// To retrieve the properties of a Payment Link. This may be used to get the status of a previously initiated payment or next action for an ongoing payment
#[utoipa::path(
get,
path = "/payment_link/{payment_... | crates/openapi/src/routes/payment_link.rs | openapi | full_file | 229 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ChargebeeCard {
number: cards::CardNumber,
expiry_month: Secret<String>,
expiry_year: Secret<String>,
cvc: Secret<String>,
complete: bool,
} | crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | ChargebeeCard | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/locker-api-reference/locker-health/get-health.mdx
# Type: Doc File
---
openapi: rust_locker_open_api_spec get /health
--- | api-reference/locker-api-reference/locker-health/get-health.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Encryption {
inner: Secret<Vec<u8>, EncryptionStrategy>,
} | crates/common_utils/src/encryption.rs | common_utils | struct_definition | 16 | rust | Encryption | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_connector_payment_id(&self) -> Option<&str> {
self.connector_transaction_id.as_deref()
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 26 | rust | null | null | null | null | get_connector_payment_id | null | null | null | null | null | null | null |
pub struct FiuWebhookEvent {
pub status: FiuuPaymentWebhookStatus,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | FiuWebhookEvent | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentLinkInitiate;
let (merchant_id, payment_id) = path.into_inner();
let payload = api_models::payments::PaymentLinkInitiateRequest {
payment_id,
merchant_id: merchant_id.clone(),
};
Box::pin(api::server_wrap(
flow,
state,
... | crates/router/src/routes/payment_link.rs | router | impl_block | 190 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl api::PaymentIncrementalAuthorization for Archipel {} | crates/hyperswitch_connectors/src/connectors/archipel.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Archipel | api::PaymentIncrementalAuthorization for | impl api::PaymentIncrementalAuthorization for for Archipel | null | null | null | null | null | null | null | null |
pub fn into_values(self) -> vec::IntoIter<V> {
self.data.into_iter()
} | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | function_signature | 22 | rust | null | null | null | null | into_values | null | null | null | null | null | null | null |
pub struct BankAccount {
pub bank_id: Option<Secret<String>>,
pub account_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | BankAccount | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | function_signature | 27 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl api::PaymentVoid for Volt {} | crates/hyperswitch_connectors/src/connectors/volt.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Volt | api::PaymentVoid for | impl api::PaymentVoid for for Volt | null | null | null | null | null | null | null | null |
impl Santander {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | impl_block | 34 | rust | null | Santander | null | impl Santander | null | null | null | null | null | null | null | null |
impl CustomerRequest {
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> {
self.merchant_reference_id.clone()
}
pub fn get_default_customer_billing_address(&self) -> Option<payments::AddressDetails> {
self.default_billing_address.clone()
}
pub fn get_default_cu... | crates/api_models/src/customers.rs | api_models | impl_block | 120 | rust | null | CustomerRequest | null | impl CustomerRequest | null | null | null | null | null | null | null | null |
File: crates/api_models/src/currency.rs
Public structs: 2
use common_utils::{events::ApiEventMetric, types::MinorUnit};
/// QueryParams to be send to convert the amount -> from_currency -> to_currency
#[derive(Debug, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct CurrencyConversionParams {
p... | crates/api_models/src/currency.rs | api_models | full_file | 162 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
web::scope("/blocklist")
.app_data(web::Data::new(state))
.service(
web::resource("")
.route(web::get().to(blocklist::list_blocked_payment_methods))
.route(web::post().to(blocklist::add_entr... | crates/router/src/routes/app.rs | router | function_signature | 119 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub struct Attributes {
vault: PaypalVault,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 11 | rust | Attributes | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiservReturnUrls {
success_url: String,
cancel_url: String,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | FiservReturnUrls | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Billwerk {} | crates/hyperswitch_connectors/src/connectors/billwerk.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Billwerk | api::PaymentToken for | impl api::PaymentToken for for Billwerk | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Paypal | api::MandateSetup for | impl api::MandateSetup for for Paypal | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Aci {
fn get_webhook_source_verification_algorithm(
&self,
_request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::NoAlgorithm))
}
fn get_webhook_source_verifi... | crates/hyperswitch_connectors/src/connectors/aci.rs | hyperswitch_connectors | impl_block | 1,608 | rust | null | Aci | IncomingWebhook for | impl IncomingWebhook for for Aci | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Jpmorgan {} | crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Jpmorgan | api::MandateSetup for | impl api::MandateSetup for for Jpmorgan | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentType
{
"type": "string",
"description": "The type of the payment that differentiates between normal and various types of mandate payments. Use 'setup_mandate' in case of zero auth flow.",
"enum": [
"normal",
"new_mandate",
"setup_mandate",
"recurring_m... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 89 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentType"
] | null | null | null | null |
pub struct NextFlow {
origin: Origin,
next_flow: UserFlow,
user: UserFromStorage,
path: Vec<TokenPurpose>,
tenant_id: Option<id_type::TenantId>,
} | crates/router/src/types/domain/user/decision_manager.rs | router | struct_definition | 44 | rust | NextFlow | null | null | null | null | null | null | null | null | null | null | null |
pub trait DisputeMetricAccumulator {
type MetricOutput;
fn add_metrics_bucket(&mut self, metrics: &DisputeMetricRow);
fn collect(self) -> Self::MetricOutput;
} | crates/analytics/src/disputes/accumulators.rs | analytics | trait_definition | 43 | rust | null | null | DisputeMetricAccumulator | null | null | null | null | null | null | null | null | null |
pub struct PaymentResponse {
response_code: u8,
receipt: String,
credit_card_token: Option<String>,
declined_code: Option<String>,
declined_message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | PaymentResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.Address
{
"type": "object",
"properties": {
"address": {
"allOf": [
{
"$ref": "#/components/schemas/AddressDetails"
}
],
"nullable": true
},
"phone": {
"allOf": [
{
"$ref": "#/components/schemas/Ph... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 122 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"Address"
] | null | null | null | null |
impl Customers {
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/customers").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
route = route
.service(
web::resource("/{customer_id}/mandates")
... | crates/router/src/routes/app.rs | router | impl_block | 315 | rust | null | Customers | null | impl Customers | null | null | null | null | null | null | null | null |
impl behaviour::Conversion for PaymentAttempt {
type DstType = DieselPaymentAttempt;
type NewDstType = DieselPaymentAttemptNew;
async fn convert(self) -> CustomResult<Self::DstType, ValidationError> {
use common_utils::encryption::Encryption;
let card_network = self
.payment_me... | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | impl_block | 3,016 | rust | null | PaymentAttempt | behaviour::Conversion for | impl behaviour::Conversion for for PaymentAttempt | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AttemptStatus
{
"type": "string",
"description": "The status of the attempt",
"enum": [
"started",
"authentication_failed",
"router_declined",
"authentication_pending",
"authentication_successful",
"authorized",
"authorization_failed",
"charge... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 195 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AttemptStatus"
] | null | null | null | null |
pub struct XenditAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | XenditAuthType | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentsPreProcessing for Gocardless {} | crates/hyperswitch_connectors/src/connectors/gocardless.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Gocardless | api::PaymentsPreProcessing for | impl api::PaymentsPreProcessing for for Gocardless | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
web::scope("/gsm")
.app_data(web::Data::new(state))
.service(web::resource("").route(web::post().to(gsm::create_gsm_rule)))
.service(web::resource("/get").route(web::post().to(gsm::get_gsm_rule)))
.service(web::resource("/... | crates/router/src/routes/app.rs | router | function_signature | 121 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
#[strum(serialize = "120")]
HorniPocernice,
#[strum(serialize = "521")]
HradecKraloveDistrict,
#[strum(serialize = "52")]
HradecKraloveRegion,
#[strum(serialize = "512")]
JablonecNadNisouDistrict,
#[strum(serialize = "711")]
JesenikDistrict,
#[strum(serialize = "632")]
Ji... | crates/common_enums/src/enums.rs#chunk3 | common_enums | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Nordea {} | crates/hyperswitch_connectors/src/connectors/nordea.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Nordea | api::Payment for | impl api::Payment for for Nordea | null | null | null | null | null | null | null | null |
pub fn validate(&self) -> Result<(), ApplicationError> {
common_utils::fp_utils::when(self.lock_key.is_default_or_empty(), || {
Err(ApplicationError::InvalidConfigurationValueError(
"producer lock key must not be empty".into(),
))
})
} | crates/scheduler/src/settings.rs | scheduler | function_signature | 59 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
pub struct CybersourceConsumerAuthInformationValidateRequest {
authentication_transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | CybersourceConsumerAuthInformationValidateRequest | null | null | null | null | null | null | null | null | null | null | null |
pub trait RequestBuilder: Send + Sync {
fn json(&mut self, body: serde_json::Value);
fn url_encoded_form(&mut self, body: serde_json::Value);
fn timeout(&mut self, timeout: Duration);
fn multipart(&mut self, form: Form);
fn header(&mut self, key: String, value: Maskable<String>) -> CustomResult<(), ... | crates/router/src/services/api/client.rs | router | trait_definition | 142 | rust | null | null | RequestBuilder | null | null | null | null | null | null | null | null | null |
impl CustomerNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Customer> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/customers.rs | diesel_models | impl_block | 39 | rust | null | CustomerNew | null | impl CustomerNew | null | null | null | null | null | null | null | null |
pub struct MandateAmountData {
pub amount: common_utils::types::MinorUnit,
pub currency: Currency,
pub start_date: Option<PrimitiveDateTime>,
pub end_date: Option<PrimitiveDateTime>,
pub metadata: Option<pii::SecretSerdeValue>,
} | crates/diesel_models/src/enums.rs | diesel_models | struct_definition | 59 | rust | MandateAmountData | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentLinkStatus
{
"type": "string",
"description": "Status Of the Payment Link",
"enum": [
"active",
"expired"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 47 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentLinkStatus"
] | null | null | null | null |
File: crates/api_models/src/connector_onboarding.rs
Public structs: 6
use common_utils::id_type;
use super::{admin, enums};
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
pub struct ActionUrlRequest {
pub connector: enums::Connector,
pub connector_id: id_type::MerchantConnectorAccountId,
... | crates/api_models/src/connector_onboarding.rs | api_models | full_file | 408 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/cryptopay.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
crypto::{self, GenerateDigest, SignMessage},
date_time,
errors::CustomResult,
ext_trai... | crates/hyperswitch_connectors/src/connectors/cryptopay.rs | hyperswitch_connectors | full_file | 4,378 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Checkbook {} | crates/hyperswitch_connectors/src/connectors/checkbook.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Checkbook | api::Refund for | impl api::Refund for for Checkbook | null | null | null | null | null | null | null | null |
pub struct UserFromEmailRequest {
pub token: Secret<String>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 15 | rust | UserFromEmailRequest | null | null | null | null | null | null | null | null | null | null | null |
/// Time difference between UTC time and the Cardholder browser local time, in minutes. The field is limited to 1-5
/// characters where the vauyes is returned from the getTimezoneOffset() method.
///
/// Depending on the message version, the field is required for requests:
/// - with message versi... | crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs#chunk2 | hyperswitch_connectors | chunk | 4,060 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn files_delete(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse {
let flow = Flow::DeleteFile;
let file_id = files::FileId {
file_id: path.into_inner(),
};
Box::pin(api::server_wrap(
flow,
state,
&req,
... | crates/router/src/routes/files.rs | router | function_signature | 210 | rust | null | null | null | null | files_delete | null | null | null | null | null | null | null |
pub struct BluecodePaymentsResponse {
pub id: i64,
pub order_id: String,
pub amount: FloatMajorUnit,
pub currency: enums::Currency,
pub charged_amount: FloatMajorUnit,
pub charged_currency: enums::Currency,
pub status: BluecodePaymentStatus,
pub payment_link: url::Url,
pub etoken: Se... | crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs | hyperswitch_connectors | struct_definition | 91 | rust | BluecodePaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_types/src/customers.rs
Public functions: 1
Public structs: 1
//! Customer related types
/// HashMap containing MerchantConnectorAccountId and corresponding customer id
#[cfg(feature = "v2")]
#[derive(Clone, Debug, Default, serde::Deserialize, serde::Serialize, diesel::AsExpression)]
#[diesel(sql... | crates/common_types/src/customers.rs | common_types | full_file | 311 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AdyenplatformIncomingWebhookData {
pub status: AdyenplatformWebhookStatus,
pub reference: String,
pub tracking: Option<AdyenplatformInstantStatus>,
pub category: Option<AdyenPayoutMethod>,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 52 | rust | AdyenplatformIncomingWebhookData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_default_customer_shipping_address(&self) -> Option<payments::AddressDetails> {
self.default_shipping_address.clone()
} | crates/api_models/src/customers.rs | api_models | function_signature | 29 | rust | null | null | null | null | get_default_customer_shipping_address | null | null | null | null | null | null | null |
pub struct CardDetailUpdate {
/// Card Expiry Month
#[schema(value_type = String,example = "10")]
pub card_exp_month: Option<masking::Secret<String>>,
/// Card Expiry Year
#[schema(value_type = String,example = "25")]
pub card_exp_year: Option<masking::Secret<String>>,
/// Card Holder Name... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 150 | rust | CardDetailUpdate | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthenticationDataWithMultipleProfiles {
pub merchant_account: domain::MerchantAccount,
pub key_store: domain::MerchantKeyStore,
pub profile_id_list: Option<Vec<id_type::ProfileId>>,
} | crates/router/src/services/authentication.rs | router | struct_definition | 45 | rust | AuthenticationDataWithMultipleProfiles | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundReasonAccumulator {
pub count: u64,
} | crates/analytics/src/refunds/accumulator.rs | analytics | struct_definition | 18 | rust | RefundReasonAccumulator | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerRequest {
create_customer_profile_request: CreateCustomerRequest,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | CustomerRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Elavon {} | crates/hyperswitch_connectors/src/connectors/elavon.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Elavon | api::PaymentSession for | impl api::PaymentSession for for Elavon | null | null | null | null | null | null | null | null |
pub struct SaleQueryResponse {
items: Vec<SaleQuery>,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | SaleQueryResponse | null | null | null | null | null | null | null | null | null | null | null |
impl Origin {
fn get_flows(&self) -> &'static [UserFlow] {
match self {
Self::SignInWithSSO => &SIGNIN_WITH_SSO_FLOW,
Self::SignIn => &SIGNIN_FLOW,
Self::SignUp => &SIGNUP_FLOW,
Self::VerifyEmail => &VERIFY_EMAIL_FLOW,
Self::MagicLink => &MAGIC_LIN... | crates/router/src/types/domain/user/decision_manager.rs | router | impl_block | 116 | rust | null | Origin | null | impl Origin | null | null | null | null | null | null | null | null |
pub struct AdyenBankAccountIdentification {
#[serde(rename = "type")]
bank_type: String,
#[serde(flatten)]
account_details: AdyenBankAccountIdentificationDetails,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 40 | rust | AdyenBankAccountIdentification | null | null | null | null | null | null | null | null | null | null | null |
/// Default limit for payments list API
pub fn default_payments_list_limit() -> u32 {
10
} | crates/common_utils/src/consts.rs | common_utils | function_signature | 26 | rust | null | null | null | null | default_payments_list_limit | null | null | null | null | null | null | null |
pub fn get_surcharge_results_size(&self) -> usize {
self.surcharge_results.len()
} | crates/router/src/core/payments/types.rs | router | function_signature | 23 | rust | null | null | null | null | get_surcharge_results_size | null | null | null | null | null | null | null |
pub struct AuthenticationResponse {
pub trans_status: common_enums::TransactionStatus,
pub acs_url: Option<url::Url>,
pub challenge_request: Option<String>,
pub acs_reference_number: Option<String>,
pub acs_trans_id: Option<String>,
pub three_dsserver_trans_id: Option<String>,
pub acs_signed... | crates/router/src/types/api/authentication.rs | router | struct_definition | 80 | rust | AuthenticationResponse | null | null | null | null | null | null | null | null | null | null | null |
impl EventClass {
#[inline]
pub fn event_types(self) -> HashSet<EventType> {
match self {
Self::Payments => HashSet::from([
EventType::PaymentSucceeded,
EventType::PaymentFailed,
EventType::PaymentProcessing,
EventType::PaymentC... | crates/common_enums/src/enums.rs | common_enums | impl_block | 286 | rust | null | EventClass | null | impl EventClass | null | null | null | null | null | null | null | null |
impl super::disputes::filters::DisputeFilterAnalytics for SqlxClient {} | crates/analytics/src/sqlx.rs | analytics | impl_block | 18 | rust | null | SqlxClient | super::disputes::filters::DisputeFilterAnalytics for | impl super::disputes::filters::DisputeFilterAnalytics for for SqlxClient | null | null | null | null | null | null | null | null |
pub struct ShippingData {
ship_addr_city: Option<String>,
ship_addr_country: Option<String>,
ship_addr_line1: Option<Secret<String>>,
ship_addr_line2: Option<Secret<String>>,
ship_addr_line3: Option<Secret<String>>,
ship_addr_postal_code: Option<Secret<String>>,
ship_addr_state: Option<Secre... | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 77 | rust | ShippingData | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(config: AppState) -> Scope {
web::scope("/ephemeral_keys")
.app_data(web::Data::new(config))
.service(web::resource("").route(web::post().to(ephemeral_key_create)))
.service(web::resource("/{id}").route(web::delete().to(ephemeral_key_delete)))
} | crates/router/src/routes/app.rs | router | function_signature | 76 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub async fn execute_payment_method_tokenization(
executor: tokenize::CardNetworkTokenizeExecutor<'_, domain::TokenizePaymentMethodRequest>,
builder: tokenize::NetworkTokenizationBuilder<'_, tokenize::TokenizeWithPmId>,
req: &domain::TokenizePaymentMethodRequest,
) -> errors::RouterResult<api::CardNetworkTo... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 510 | rust | null | null | null | null | execute_payment_method_tokenization | null | null | null | null | null | null | null |
impl api::PaymentCapture for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Stripe | api::PaymentCapture for | impl api::PaymentCapture for for Stripe | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/mandates.rs
Public functions: 4
Public structs: 11
use std::collections::HashMap;
use api_models::payments::{
MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateType,
};
use common_enums::Currency;
use common_types::payments as common_paym... | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | full_file | 3,775 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RoutingVolumeSplitResponse
{
"type": "object",
"required": [
"split"
],
"properties": {
"split": {
"type": "integer",
"format": "int32",
"minimum": 0
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 71 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RoutingVolumeSplitResponse"
] | null | null | null | null |
Web Documentation: Alternate Payment Method Widgets | Hyperswitch
# Type: Web Doc
We support modular, embeddable alternate payment methods (APMs) known as
Hyperwidgets
, which a merchant can use to augment their existing checkout in a low code manner.
Let us understand with an example-
In the below checkout screen the... | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/enable-alternate-payment-method-widgets | null | web_doc_file | 1,196 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/enable-alternate-payment-method-widgets | Alternate Payment Method Widgets | Hyperswitch | null |
pub struct RelayRefund; | crates/router/src/core/relay.rs | router | struct_definition | 6 | rust | RelayRefund | null | null | null | null | null | null | null | null | null | null | null |
/// Obtain the crates in the current cargo workspace as a `HashSet`.
///
/// This macro requires that [`set_cargo_workspace_members_env()`] function be called in the
/// build script of the crate where this macro is being called.
///
/// # Errors
///
/// Causes a compilation error if the `CARGO_WORKSPACE_MEMBERS` envir... | crates/router_env/src/cargo_workspace.rs | router_env | macro | 123 | rust | null | null | null | null | null | null | null | null | declarative | null | null | null |
pub struct TransactionFailedRequest {
checkout: FailedTransactionData,
} | crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs | hyperswitch_connectors | struct_definition | 14 | rust | TransactionFailedRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Checkbook {} | crates/hyperswitch_connectors/src/connectors/checkbook.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Checkbook | api::PaymentCapture for | impl api::PaymentCapture for for Checkbook | 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.