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 fn get_header_value_by_key(key: String, headers: &HeaderMap) -> RouterResult<Option<&str>> {
headers
.get(&key)
.map(|source_str| {
source_str
.to_str()
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable(fo... | crates/router/src/services/authentication.rs | router | function_signature | 94 | rust | null | null | null | null | get_header_value_by_key | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Santander {} | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Santander | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Santander | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Nordea {} | crates/hyperswitch_connectors/src/connectors/nordea.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nordea | api::RefundExecute for | impl api::RefundExecute for for Nordea | null | null | null | null | null | null | null | null |
pub fn validate(&self) -> Result<(), ApplicationError> {
use common_utils::fp_utils::when;
when(self.stream.is_default_or_empty(), || {
Err(ApplicationError::InvalidConfigurationValueError(
"scheduler stream must not be empty".into(),
))
})?;
whe... | crates/scheduler/src/configs/validations.rs | scheduler | function_signature | 118 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
pub struct NetceteraAuthenticationRequest {
/// Specifies the preferred version of 3D Secure protocol to be utilized while executing 3D Secure authentication.
/// 3DS Server initiates an authentication request with the preferred version and if this version is not supported by
/// other 3D Secure components,... | crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs | hyperswitch_connectors | struct_definition | 973 | rust | NetceteraAuthenticationRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovolnetRedirectionResponse {
status: NovalnetTransactionStatus,
tid: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | NovolnetRedirectionResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Xendit {
amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/xendit.rs | hyperswitch_connectors | struct_definition | 28 | rust | Xendit | null | null | null | null | null | null | null | null | null | null | null |
pub fn payments_confirm_intent() {} | crates/openapi/src/routes/payments.rs | openapi | function_signature | 7 | rust | null | null | null | null | payments_confirm_intent | null | null | null | null | null | null | null |
impl std::error::Error for ApiErrorResponse {} | crates/api_models/src/errors/types.rs | api_models | impl_block | 10 | rust | null | ApiErrorResponse | std::error::Error for | impl std::error::Error for for ApiErrorResponse | null | null | null | null | null | null | null | null |
pub fn generate_runner() -> Result<ReturnArgs> {
let args = Args::parse();
match args.get_module_name() {
Some(Module::Users) => generate_newman_command_for_users(),
Some(Module::Connector) => generate_newman_command_for_connector(),
// Running connector tests when no module is passed t... | crates/test_utils/src/newman_runner.rs | test_utils | function_signature | 87 | rust | null | null | null | null | generate_runner | null | null | null | null | null | null | null |
File: crates/router/src/events/event_logger.rs
Public structs: 1
use std::collections::HashMap;
use events::{EventsError, Message, MessagingInterface};
use masking::ErasedMaskSerialize;
use time::PrimitiveDateTime;
use super::EventType;
use crate::services::{kafka::KafkaMessage, logger};
#[derive(Clone, Debug, Def... | crates/router/src/events/event_logger.rs | router | full_file | 310 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Braintree {} | crates/hyperswitch_connectors/src/connectors/braintree.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Braintree | api::RefundSync for | impl api::RefundSync for for Braintree | null | null | null | null | null | null | null | null |
pub struct BitpayErrorResponse {
pub error: String,
pub code: Option<String>,
pub message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | BitpayErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct AnalysisError {
#[serde(flatten)]
pub error_type: AnalysisErrorType,
pub metadata: Metadata,
} | crates/euclid/src/dssa/types.rs | euclid | struct_definition | 27 | rust | AnalysisError | null | null | null | null | null | null | null | null | null | null | null |
impl MasterKeyInterface for Store {
fn get_master_key(&self) -> &[u8] {
self.master_key().peek()
}
} | crates/router/src/db.rs | router | impl_block | 31 | rust | null | Store | MasterKeyInterface for | impl MasterKeyInterface for for Store | null | null | null | null | null | null | null | null |
pub async fn perform_calculate_workflow(
state: &SessionState,
process: &storage::ProcessTracker,
profile: &domain::Profile,
merchant_context: domain::MerchantContext,
tracking_data: &pcr::RevenueRecoveryWorkflowTrackingData,
revenue_recovery_payment_data: &pcr::RevenueRecoveryPaymentData,
p... | crates/router/src/core/revenue_recovery.rs | router | function_signature | 1,495 | rust | null | null | null | null | perform_calculate_workflow | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.WalletAdditionalData
{
"oneOf": [
{
"$ref": "#/components/schemas/PaypalAdditionalData"
},
{
"$ref": "#/components/schemas/VenmoAdditionalData"
}
],
"description": "Masked payout method details for wallet payout method"
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 76 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"WalletAdditionalData"
] | null | null | null | null |
pub struct SdkInitiatedCount; | crates/api_models/src/analytics/sdk_events.rs | api_models | struct_definition | 8 | rust | SdkInitiatedCount | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Dlocal {
fn id(&self) -> &'static str {
"dlocal"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &'a... | crates/hyperswitch_connectors/src/connectors/dlocal.rs | hyperswitch_connectors | impl_block | 294 | rust | null | Dlocal | ConnectorCommon for | impl ConnectorCommon for for Dlocal | null | null | null | null | null | null | null | null |
pub struct NotAvailableFlows {
pub capture_method: Option<api_enums::CaptureMethod>,
} | crates/kgraph_utils/src/types.rs | kgraph_utils | struct_definition | 22 | rust | NotAvailableFlows | null | null | null | null | null | null | null | null | null | null | null |
impl<T> RequiredFromNullable<T> {
/// Extracts the inner value from the wrapper
pub fn into_inner(self) -> T {
self.0
}
} | crates/diesel_models/src/lib.rs | diesel_models | impl_block | 39 | rust | null | RequiredFromNullable | null | impl RequiredFromNullable | null | null | null | null | null | null | null | null |
pub struct BarclaycardRsyncResponse {
id: String,
application_information: Option<RsyncApplicationInformation>,
error_information: Option<BarclaycardErrorInformation>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | BarclaycardRsyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct ResponseStatus {
pub environment: String,
pub response_type: String,
pub response_code: ForteResponseCode,
pub response_desc: String,
pub authorization_code: String,
pub avs_result: Option<String>,
pub cvv_result: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | hyperswitch_connectors | struct_definition | 61 | rust | ResponseStatus | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_by_unified_code_unified_message_locale(
conn: &PgPooledConn,
unified_code: String,
unified_message: String,
locale: String,
data: UnifiedTranslationsUpdate,
) -> StorageResult<Self> {
generics::generic_update_with_results::<
<Self as Ha... | crates/diesel_models/src/query/unified_translations.rs | diesel_models | function_signature | 183 | rust | null | null | null | null | update_by_unified_code_unified_message_locale | null | null | null | null | null | null | null |
pub async fn routing_retrieve_default_config(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::ProfileId>,
) -> impl Responder {
let path = path.into_inner();
Box::pin(oss_api::server_wrap(
Flow::RoutingRetrieveDefaultConfig,
state,
&req,
... | crates/router/src/routes/routing.rs | router | function_signature | 286 | rust | null | null | null | null | routing_retrieve_default_config | null | null | null | null | null | null | null |
pub struct GooglePayPaymentInformation {
fluid_data: FluidData,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | GooglePayPaymentInformation | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Silverflow {
fn get_webhook_object_reference_id(
&self,
request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
let webhook_body = String::from_utf8(request.body.to_vec(... | crates/hyperswitch_connectors/src/connectors/silverflow.rs | hyperswitch_connectors | impl_block | 1,229 | rust | null | Silverflow | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Silverflow | null | null | null | null | null | null | null | null |
pub struct PayboxCaptureRequest {
#[serde(rename = "DATEQ")]
pub date: String,
#[serde(rename = "TYPE")]
pub transaction_type: String,
#[serde(rename = "NUMQUESTION")]
pub paybox_request_number: String,
#[serde(rename = "MONTANT")]
pub amount: MinorUnit,
#[serde(rename = "REFEREN... | crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs | hyperswitch_connectors | struct_definition | 201 | rust | PayboxCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct HyperwalletPaymentsRequest {
amount: StringMinorUnit,
card: HyperwalletCard,
} | crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | HyperwalletPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn merchant_account_list() {} | crates/openapi/src/routes/organization.rs | openapi | function_signature | 8 | rust | null | null | null | null | merchant_account_list | null | null | null | null | null | null | null |
pub struct ExpiryResponse {
month: Option<Secret<i32>>,
year: Option<Secret<i32>>,
} | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | ExpiryResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct GpaymentsPreAuthenticationRequest {
pub acct_number: CardNumber,
pub card_scheme: Option<CardScheme>,
pub challenge_window_size: Option<ChallengeWindowSize>,
/// URL where the 3DS requestor receives events during authentication.
/// ActiveServer calls this URL through the iframe to notif... | crates/hyperswitch_connectors/src/connectors/gpayments/gpayments_types.rs | hyperswitch_connectors | struct_definition | 349 | rust | GpaymentsPreAuthenticationRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Helcim {} | crates/hyperswitch_connectors/src/connectors/helcim.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Helcim | api::Refund for | impl api::Refund for for Helcim | null | null | null | null | null | null | null | null |
pub async fn create_payment_method_for_confirm(
state: &SessionState,
customer_id: &id_type::GlobalCustomerId,
payment_method_id: id_type::GlobalPaymentMethodId,
external_vault_source: Option<id_type::MerchantConnectorAccountId>,
merchant_id: &id_type::MerchantId,
key_store: &domain::MerchantKey... | crates/router/src/core/payment_methods.rs | router | function_signature | 507 | rust | null | null | null | null | create_payment_method_for_confirm | null | null | null | null | null | null | null |
impl PartialEq for FrmMetricsBucketIdentifier {
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/frm.rs | api_models | impl_block | 69 | rust | null | FrmMetricsBucketIdentifier | PartialEq for | impl PartialEq for for FrmMetricsBucketIdentifier | null | null | null | null | null | null | null | null |
pub struct Custombilling {
amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/custombilling.rs | hyperswitch_connectors | struct_definition | 27 | rust | Custombilling | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApiErrorResponse {
pub code: Option<String>,
pub message: String,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | ApiErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_customer_id(&self) -> Option<&id_type::CustomerId> {
self.customer_id
.as_ref()
.or(self.customer.as_ref().map(|customer| &customer.id))
} | crates/api_models/src/payouts.rs | api_models | function_signature | 45 | rust | null | null | null | null | get_customer_id | null | null | null | null | null | null | null |
impl LockingInput {
fn get_redis_locking_key(&self, merchant_id: &common_utils::id_type::MerchantId) -> String {
format!(
"{}_{}_{}_{}",
API_LOCK_PREFIX,
merchant_id.get_string_repr(),
self.api_identifier,
self.unique_locking_key
)
}
} | crates/router/src/core/api_locking.rs | router | impl_block | 70 | rust | null | LockingInput | null | impl LockingInput | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Razorpay {} | crates/hyperswitch_connectors/src/connectors/razorpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Razorpay | api::PaymentVoid for | impl api::PaymentVoid for for Razorpay | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/profile/profile--activate-routing-algorithm.mdx
# Type: Doc File
---
openapi: patch /v2/profiles/{id}/activate-routing-algorithm
--- | api-reference/v2/profile/profile--activate-routing-algorithm.mdx | null | doc_file | 41 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl MerchantId {
pub fn new(merchant_id: String) -> UserResult<Self> {
let merchant_id = merchant_id.trim().to_lowercase().replace(' ', "_");
let is_empty_or_whitespace = merchant_id.is_empty();
let is_all_valid_characters = merchant_id.chars().all(|x| x.is_alphanumeric() || x == '_');
... | crates/router/src/types/domain/user.rs | router | impl_block | 135 | rust | null | MerchantId | null | impl MerchantId | null | null | null | null | null | null | null | null |
pub struct PaymentMethodDetails {
payment_card: Option<PaymentCardDetails>,
payment_method_type: Option<String>,
payment_method_brand: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 33 | rust | PaymentMethodDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct AmazonpayPaymentsResponse {
charge_id: String,
charge_amount: ChargeAmount,
charge_permission_id: String,
capture_amount: Option<ChargeAmount>,
refunded_amount: Option<ChargeAmount>,
soft_descriptor: Option<String>,
provider_metadata: Option<ProviderMetadata>,
converted_amount... | crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs | hyperswitch_connectors | struct_definition | 165 | rust | AmazonpayPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApplePayWalletData {
/// The payment data of Apple pay
pub payment_data: common_types::payments::ApplePayPaymentData,
/// The payment method of Apple pay
pub payment_method: ApplepayPaymentMethod,
/// The unique identifier for the transaction
pub transaction_identifier: String,
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 67 | rust | ApplePayWalletData | null | null | null | null | null | null | null | null | null | null | null |
/// get_should_call_gsm_payout_key
pub fn get_should_call_gsm_payout_key(
&self,
payout_retry_type: common_enums::PayoutRetryType,
) -> String {
match payout_retry_type {
common_enums::PayoutRetryType::SingleConnector => format!(
"should_call_gsm_single_connec... | crates/common_utils/src/id_type/merchant.rs | common_utils | function_signature | 127 | rust | null | null | null | null | get_should_call_gsm_payout_key | null | null | null | null | null | null | null |
pub fn new(tracking_id: String, return_url: String) -> Self {
Self {
tracking_id,
operations: vec![PartnerReferralOperations {
operation: PayPalReferralOperationType::ApiIntegration,
api_integration_preference: PartnerReferralIntegrationPreference {
... | crates/router/src/types/api/connector_onboarding/paypal.rs | router | function_signature | 269 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl api::PaymentSync for Archipel {} | crates/hyperswitch_connectors/src/connectors/archipel.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Archipel | api::PaymentSync for | impl api::PaymentSync for for Archipel | null | null | null | null | null | null | null | null |
pub struct GetTrackerResponse<'a, F: Clone, R, D> {
pub operation: BoxedOperation<'a, F, R, D>,
pub customer_details: Option<CustomerDetails>,
pub payment_data: D,
pub business_profile: domain::Profile,
pub mandate_type: Option<api::MandateTransactionType>,
} | crates/router/src/core/payments/operations.rs | router | struct_definition | 74 | rust | GetTrackerResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/storage_impl/src/payments/payment_intent.rs
#[cfg(feature = "olap")]
use api_models::payments::{AmountFilter, Order, SortBy, SortOn};
#[cfg(feature = "olap")]
use async_bb8_diesel::{AsyncConnection, AsyncRunQueryDsl};
#[cfg(feature = "v2")]
use common_utils::fallback_reverse_lookup_not_found;
use common_u... | crates/storage_impl/src/payments/payment_intent.rs#chunk0 | storage_impl | chunk | 8,184 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ToggleBlocklistResponse {
pub blocklist_guard_status: String,
} | crates/api_models/src/blocklist.rs | api_models | struct_definition | 17 | rust | ToggleBlocklistResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RouterDataV2<Flow, ResourceCommonData, FlowSpecificRequest, FlowSpecificResponse> {
pub flow: PhantomData<Flow>,
pub tenant_id: id_type::TenantId,
pub resource_common_data: ResourceCommonData,
pub connector_auth_type: ConnectorAuthType,
/// Contains flow-specific data required to construc... | crates/hyperswitch_domain_models/src/router_data_v2.rs | hyperswitch_domain_models | struct_definition | 113 | rust | RouterDataV2 | null | null | null | null | null | null | null | null | null | null | null |
pub struct BacsBankTransfer {
/// Bank name
#[schema(value_type = Option<String>, example = "Deutsche Bank")]
pub bank_name: Option<String>,
/// Bank country code
#[schema(value_type = Option<CountryAlpha2>, example = "US")]
pub bank_country_code: Option<api_enums::CountryAlpha2>,
/// Bank... | crates/api_models/src/payouts.rs | api_models | struct_definition | 206 | rust | BacsBankTransfer | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Worldline {
fn id(&self) -> &'static str {
"worldline"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str {
connectors.worldline.base_url.as_ref()
}
... | crates/hyperswitch_connectors/src/connectors/worldline.rs | hyperswitch_connectors | impl_block | 276 | rust | null | Worldline | ConnectorCommon for | impl ConnectorCommon for for Worldline | null | null | null | null | null | null | null | null |
pub fn merge_metadata(
&self,
request_metadata: Value,
) -> Result<Value, common_utils::errors::ParsingError> {
if !request_metadata.is_null() {
match (&self.metadata, &request_metadata) {
(Some(Value::Object(existing_map)), Value::Object(req_map)) => {
... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 192 | rust | null | null | null | null | merge_metadata | null | null | null | null | null | null | null |
pub(crate) fn get_payout_status(status: PaypalFulfillStatus) -> storage_enums::PayoutStatus {
match status {
PaypalFulfillStatus::Success => storage_enums::PayoutStatus::Success,
PaypalFulfillStatus::Denied | PaypalFulfillStatus::Failed => {
storage_enums::PayoutStatus::Failed
}
... | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | function_signature | 156 | rust | null | null | null | null | get_payout_status | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/v2/connector-accounts").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
use super::admin::*;
route = route
.service(web::resource("").route(web::post().to(connector_create... | crates/router/src/routes/app.rs | router | function_signature | 131 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
impl api::PaymentSync for UnifiedAuthenticationService {} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 10 | rust | null | UnifiedAuthenticationService | api::PaymentSync for | impl api::PaymentSync for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
pub struct KatapultAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | KatapultAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct Profile {
pub profile_id: common_utils::id_type::ProfileId,
pub merchant_id: common_utils::id_type::MerchantId,
pub profile_name: String,
pub created_at: time::PrimitiveDateTime,
pub modified_at: time::PrimitiveDateTime,
pub return_url: Option<String>,
pub enable_payment_response_... | crates/diesel_models/src/business_profile.rs | diesel_models | struct_definition | 719 | rust | Profile | null | null | null | null | null | null | null | null | null | null | null |
pub struct BarclaycardPaymentsRequest {
processing_information: ProcessingInformation,
payment_information: PaymentInformation,
order_information: OrderInformationWithBill,
client_reference_information: ClientReferenceInformation,
#[serde(skip_serializing_if = "Option::is_none")]
consumer_authen... | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 96 | rust | BarclaycardPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PowertranzCard {
cardholder_name: Secret<String>,
card_pan: cards::CardNumber,
card_expiration: Secret<String>,
card_cvv: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | PowertranzCard | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Forte {} | crates/hyperswitch_connectors/src/connectors/forte.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Forte | api::PaymentSync for | impl api::PaymentSync for for Forte | null | null | null | null | null | null | null | null |
pub struct KlarnaSdkResponse {
pub payment_type: Option<String>,
} | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | 16 | rust | KlarnaSdkResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
Public functions: 2
Public structs: 22
#[cfg(feature = "v2")]
use std::str::FromStr;
use common_enums::enums;
#[cfg(all(feature = "revenue_recovery", feature = "v2"))]
use common_utils::id_type;
use common_utils::{errors::CustomResult,... | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | full_file | 5,175 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/merchant-connector-account/merchant-connector--delete.mdx
# Type: Doc File
---
openapi: delete /v2/connector-accounts/{id}
--- | api-reference/v2/merchant-connector-account/merchant-connector--delete.mdx | null | doc_file | 42 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Opayo {} | crates/hyperswitch_connectors/src/connectors/opayo.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Opayo | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Opayo | null | null | null | null | null | null | null | null |
impl RefundResponse {
pub fn get_refund_id_as_string(&self) -> String {
self.id.get_string_repr().to_owned()
}
} | crates/api_models/src/refunds.rs | api_models | impl_block | 33 | rust | null | RefundResponse | null | impl RefundResponse | null | null | null | null | null | null | null | null |
impl IntoContext for BackendInput {
fn into_context(self) -> Result<Vec<dir::DirValue>, KgraphError> {
let mut ctx: Vec<dir::DirValue> = Vec::new();
ctx.push(dir::DirValue::PaymentAmount(NumValue {
number: self.payment.amount,
refinement: None,
}));
ctx.push... | crates/kgraph_utils/src/transformers.rs | kgraph_utils | impl_block | 506 | rust | null | BackendInput | IntoContext for | impl IntoContext for for BackendInput | null | null | null | null | null | null | null | null |
pub async fn get_sso_id_from_redis(
state: &SessionState,
oidc_state: Secret<String>,
) -> UserResult<String> {
let connection = get_redis_connection_for_global_tenant(state)?;
let key = get_oidc_key(&oidc_state.expose());
connection
.get_key::<Option<String>>(&key.into())
.await
... | crates/router/src/utils/user.rs | router | function_signature | 138 | rust | null | null | null | null | get_sso_id_from_redis | null | null | null | null | null | null | null |
pub struct WellsfargoPaymentsCaptureRequest {
processing_information: ProcessingInformation,
order_information: OrderInformationWithBill,
client_reference_information: ClientReferenceInformation,
#[serde(skip_serializing_if = "Option::is_none")]
merchant_defined_information: Option<Vec<MerchantDefin... | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 61 | rust | WellsfargoPaymentsCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
impl State for PaymentMethodCreated {} | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | impl_block | 7 | rust | null | PaymentMethodCreated | State for | impl State for for PaymentMethodCreated | null | null | null | null | null | null | null | null |
pub struct DeviceData; | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 5 | rust | DeviceData | null | null | null | null | null | null | null | null | null | null | null |
pub struct BlikData {
blik: BlikDetails,
#[serde(rename = "type")]
payment_method_type: AirwallexPaymentType,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | BlikData | null | null | null | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Paypal {
fn get_webhook_object_reference_id(
&self,
request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
let payload: paypal::PaypalWebhooksBody =
request
.bo... | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 1,854 | rust | null | Paypal | IncomingWebhook for | impl IncomingWebhook for for Paypal | null | null | null | null | null | null | null | null |
pub struct BraintreeApiErrorResponse {
pub api_error_response: ApiErrorResponse,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | BraintreeApiErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct HipayMaintenanceResponse<S> {
status: S,
message: String,
transaction_reference: String,
} | crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | HipayMaintenanceResponse | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Itaubank {
fn id(&self) -> &'static str {
"itaubank"
}
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: ... | crates/hyperswitch_connectors/src/connectors/itaubank.rs | hyperswitch_connectors | impl_block | 435 | rust | null | Itaubank | ConnectorCommon for | impl ConnectorCommon for for Itaubank | null | null | null | null | null | null | null | null |
pub struct RsyncApplicationInformation {
status: Option<CybersourceRefundStatus>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | RsyncApplicationInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_card_id(conn: &PgPooledConn, card_id: &str) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::card_id.eq(card_id.to_owned()),
)
.await
} | crates/diesel_models/src/query/locker_mock_up.rs | diesel_models | function_signature | 68 | rust | null | null | null | null | find_by_card_id | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/flexiti.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
use masking::Secret;
use router::types::{self, api, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct FlexitiTest;
im... | crates/router/tests/connectors/flexiti.rs | router | full_file | 2,926 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenizeWithCard; | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | struct_definition | 7 | rust | TokenizeWithCard | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/business-profile/business-profile--update.mdx
# Type: Doc File
---
openapi: post /account/{account_id}/business_profile/{profile_id}
---
| api-reference/v1/business-profile/business-profile--update.mdx | null | doc_file | 39 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GetnetWebhookNotificationResponseBody {
pub payment: WebhookResponseData,
} | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | GetnetWebhookNotificationResponseBody | null | null | null | null | null | null | null | null | null | null | null |
pub async fn reset_process_sync_task(
db: &dyn StorageInterface,
payment_attempt: &storage::PaymentAttempt,
schedule_time: time::PrimitiveDateTime,
) -> Result<(), errors::ProcessTrackerError> {
let runner = storage::ProcessTrackerRunner::PaymentsSyncWorkflow;
let task = "PAYMENTS_SYNC";
let pro... | crates/router/src/core/payments.rs | router | function_signature | 166 | rust | null | null | null | null | reset_process_sync_task | null | null | null | null | null | null | null |
pub struct ForteCaptureResponse {
pub transaction_id: String,
pub original_transaction_id: String,
pub entered_by: String,
pub authorization_code: String,
pub response: CaptureResponseStatus,
} | crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | ForteCaptureResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct VgsMetadata {
/// External vault url
pub proxy_url: Url,
/// CA certificates to verify the vault server
pub certificate: Secret<String>,
} | crates/external_services/src/grpc_client/unified_connector_service.rs | external_services | struct_definition | 37 | rust | VgsMetadata | null | null | null | null | null | null | null | null | null | null | null |
pub trait AsyncLift<U> {
type SelfWrapper<T>;
type OtherWrapper<T, E>;
async fn async_lift<Func, F, E, V>(self, func: Func) -> Self::OtherWrapper<V, E>
where
Func: Fn(Self::SelfWrapper<U>) -> F + Send + Sync,
F: futures::Future<Output = Self::OtherWrapper<V, E>> + Send;
} | crates/hyperswitch_domain_models/src/type_encryption.rs | hyperswitch_domain_models | trait_definition | 91 | rust | null | null | AsyncLift | null | null | null | null | null | null | null | null | null |
pub struct PaymentEvent {
payment_intent: storage::PaymentIntent,
payment_attempt: storage::PaymentAttempt,
} | crates/router/src/core/payments.rs | router | struct_definition | 24 | rust | PaymentEvent | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Adyen | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Adyen | null | null | null | null | null | null | null | null |
pub fn get_allowed_signals() -> Result<signal_hook_tokio::SignalsInfo, std::io::Error> {
signal_hook_tokio::Signals::new([signal_hook::consts::SIGTERM, signal_hook::consts::SIGINT])
} | crates/common_utils/src/signals.rs | common_utils | function_signature | 51 | rust | null | null | null | null | get_allowed_signals | null | null | null | null | null | null | null |
pub struct LocalBankTransferAdditionalData {
/// Partially masked bank code
#[schema(value_type = Option<String>, example = "**** OA2312")]
pub bank_code: Option<MaskedBankAccount>,
} | crates/api_models/src/payments/additional_info.rs | api_models | struct_definition | 48 | rust | LocalBankTransferAdditionalData | null | null | null | null | null | null | null | null | null | null | null |
pub struct ClientTokenInput {
merchant_account_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | ClientTokenInput | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Paypal | api::PaymentSync for | impl api::PaymentSync for for Paypal | null | null | null | null | null | null | null | null |
pub async fn generate_vault_session_details(
state: &SessionState,
merchant_context: &domain::MerchantContext,
merchant_connector_account_type: &domain::MerchantConnectorAccountTypeDetails,
connector_customer_id: Option<String>,
) -> RouterResult<Option<api::VaultSessionDetails>> {
let connector_nam... | crates/router/src/core/payments/vault_session.rs | router | function_signature | 474 | rust | null | null | null | null | generate_vault_session_details | null | null | null | null | null | null | null |
impl api::RefundExecute for Thunes {} | crates/hyperswitch_connectors/src/connectors/thunes.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Thunes | api::RefundExecute for | impl api::RefundExecute for for Thunes | null | null | null | null | null | null | null | null |
pub struct NmiErrorResponseData {
pub code: String,
pub message: String,
} | crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | NmiErrorResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub struct TsysPaymentAuthSaleRequest {
#[serde(rename = "deviceID")]
device_id: Secret<String>,
transaction_key: Secret<String>,
card_data_source: String,
transaction_amount: StringMinorUnit,
currency_code: enums::Currency,
card_number: cards::CardNumber,
expiration_date: Secret<String>... | crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs | hyperswitch_connectors | struct_definition | 124 | rust | TsysPaymentAuthSaleRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_refund_event(event: &Shift4WebhookEvent) -> bool {
matches!(event, Shift4WebhookEvent::ChargeRefunded)
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | function_signature | 34 | rust | null | null | null | null | is_refund_event | null | null | null | null | null | null | null |
pub async fn payouts_list_by_filter_profile() {} | crates/openapi/src/routes/payouts.rs | openapi | function_signature | 10 | rust | null | null | null | null | payouts_list_by_filter_profile | 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.