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 ConnectorCommon for Cryptopay {
fn id(&self) -> &'static str {
"cryptopay"
}
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/cryptopay.rs | hyperswitch_connectors | impl_block | 404 | rust | null | Cryptopay | ConnectorCommon for | impl ConnectorCommon for for Cryptopay | null | null | null | null | null | null | null | null |
pub async fn retrieve_file_and_provider_file_id_from_file_id(
state: &SessionState,
file_id: Option<String>,
dispute_id: Option<String>,
merchant_context: &domain::MerchantContext,
is_connector_file_data_required: api::FileDataRequired,
) -> CustomResult<FileInfo, errors::ApiErrorResponse> {
mat... | crates/router/src/core/files/helpers.rs | router | function_signature | 455 | rust | null | null | null | null | retrieve_file_and_provider_file_id_from_file_id | null | null | null | null | null | null | null |
pub struct BillwerkPaymentsRequest {
handle: String,
amount: MinorUnit,
source: Secret<String>,
currency: common_enums::Currency,
customer: BillwerkCustomerObject,
metadata: Option<SecretSerdeValue>,
settle: bool,
} | crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | hyperswitch_connectors | struct_definition | 57 | rust | BillwerkPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
Public functions: 1
Public structs: 76
use base64::Engine;
use common_enums::{enums, FutureUsage};
use common_types::payments::ApplePayPredecryptData;
use common_utils::{consts, ext_traits::OptionExt, pii, types::StringMajorUnit};
use h... | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs#chunk0 | hyperswitch_connectors | chunk | 8,190 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NordeaOAuthRequest {
/// Country is a mandatory parameter with possible values FI, DK, NO or SE
pub country: api_models::enums::CountryAlpha2,
/// Duration of access authorization in minutes. range: 1 to 259200 minutes (180 days).
/// Duration should be left empty if the request includes PAYM... | crates/hyperswitch_connectors/src/connectors/nordea/requests.rs | hyperswitch_connectors | struct_definition | 236 | rust | NordeaOAuthRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn apple_pay_certificates_migration(
state: SessionState,
req: &apple_pay_certificates_migration::ApplePayCertificatesMigrationRequest,
) -> CustomResult<
services::ApplicationResponse<
apple_pay_certificates_migration::ApplePayCertificatesMigrationResponse,
>,
errors::ApiErrorResp... | crates/router/src/core/apple_pay_certificates_migration.rs | router | function_signature | 732 | rust | null | null | null | null | apple_pay_certificates_migration | null | null | null | null | null | null | null |
pub struct WisePayoutFulfillRequest {
#[serde(rename = "type")]
fund_type: FundType,
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | WisePayoutFulfillRequest | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.NextAction
{
"type": "object",
"required": [
"url",
"http_method"
],
"properties": {
"url": {
"type": "string",
"description": "The URL for authenticatating the user."
},
"http_method": {
"$ref": "#/components/schemas/Method"
}
}... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 91 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"NextAction"
] | null | null | null | null |
pub struct PaymeQueryTransactionRequest {
payme_transaction_id: String,
seller_payme_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | PaymeQueryTransactionRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Facilitapay {} | crates/hyperswitch_connectors/src/connectors/facilitapay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Facilitapay | api::PaymentCapture for | impl api::PaymentCapture for for Facilitapay | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SamsungPayAppWalletData
{
"type": "object",
"required": [
"3_d_s",
"payment_card_brand",
"payment_currency_type",
"payment_last4_fpan"
],
"properties": {
"3_d_s": {
"$ref": "#/components/schemas/SamsungPayTokenData"
},
"payment_card_brand"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 315 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SamsungPayAppWalletData"
] | null | null | null | null |
pub struct Activity {
pub activity_date: Option<String>,
pub activity_type: Option<String>,
pub from_queue: Option<String>,
pub to_queue: Option<String>,
pub notes: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | Activity | null | null | null | null | null | null | null | null | null | null | null |
pub struct BluesnapRefundRequest {
amount: Option<StringMajorUnit>,
reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | BluesnapRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct Reason {
pub code: Option<String>,
pub reject_reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | Reason | null | null | null | null | null | null | null | null | null | null | null |
pub trait PaymentIntentMetricAnalytics: LoadRow<PaymentIntentMetricRow> {} | crates/analytics/src/payment_intents/metrics.rs | analytics | trait_definition | 16 | rust | null | null | PaymentIntentMetricAnalytics | null | null | null | null | null | null | null | null | null |
pub async fn trigger_refund_execute_workflow(
state: &SessionState,
refund_tracker: &storage::ProcessTracker,
) -> Result<(), errors::ProcessTrackerError> {
let db = &*state.store;
let refund_core = serde_json::from_value::<diesel_refund::RefundCoreWorkflow>(
refund_tracker.tracking_data.clone()... | crates/router/src/core/refunds.rs | router | function_signature | 830 | rust | null | null | null | null | trigger_refund_execute_workflow | null | null | null | null | null | null | null |
impl ConnectorNetworkTxnId {
pub fn new(txn_id: masking::Secret<String>) -> Self {
Self(txn_id)
}
pub fn get_id(&self) -> &masking::Secret<String> {
&self.0
}
} | crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs | hyperswitch_domain_models | impl_block | 57 | rust | null | ConnectorNetworkTxnId | null | impl ConnectorNetworkTxnId | null | null | null | null | null | null | null | null |
impl ClientSecretType {
pub fn generate_secret_key(&self) -> String {
format!("cs_{}", self.secret.peek())
}
} | crates/diesel_models/src/ephemeral_key.rs | diesel_models | impl_block | 30 | rust | null | ClientSecretType | null | impl ClientSecretType | null | null | null | null | null | null | null | null |
impl api::RefundSync for Celero {} | crates/hyperswitch_connectors/src/connectors/celero.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Celero | api::RefundSync for | impl api::RefundSync for for Celero | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/profile_acquirers"
{
"post": {
"tags": [
"Profile Acquirer"
],
"summary": "Profile Acquirer - Create",
"description": "Create a new Profile Acquirer for accessing our APIs from your servers.",
"operationId": "Create a Profile Acquirer",
"requestBody": {
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 224 | .json | null | null | null | null | null | openapi_spec | paths | [
"/profile_acquirers"
] | null | null | null | null |
impl api::PayoutFulfill for Adyenplatform {} | crates/hyperswitch_connectors/src/connectors/adyenplatform.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Adyenplatform | api::PayoutFulfill for | impl api::PayoutFulfill for for Adyenplatform | null | null | null | null | null | null | null | null |
pub iban: Secret<String>,
#[schema(value_type = String, example = "U2PVVSEV4V9Y")]
pub reference: Secret<String>,
}
#[derive(Clone, Debug, serde::Deserialize)]
pub struct PaymentsConnectorThreeDsInvokeData {
pub directory_server_id: String,
pub three_ds_method_url: String,
pub three_ds_method_d... | crates/api_models/src/payments.rs#chunk6 | api_models | chunk | 8,190 | null | null | null | null | null | null | null | null | null | null | null | null | null |
/// fn to get click to pay connector_account_id
pub fn get_click_to_pay_connector_account_id(
&self,
) -> Result<common_utils::id_type::MerchantConnectorAccountId, errors::ValidationError> {
self.0
.get(&enums::AuthenticationProduct::ClickToPay)
.ok_or(errors::ValidationE... | crates/common_types/src/payments.rs | common_types | function_signature | 109 | rust | null | null | null | null | get_click_to_pay_connector_account_id | null | null | null | null | null | null | null |
pub struct VgsErrorItem {
pub status: u16,
pub code: String,
pub detail: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | VgsErrorItem | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Digitalvirgo {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImpleme... | crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | hyperswitch_connectors | impl_block | 211 | rust | null | Digitalvirgo | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Digitalvirgo | null | null | null | null | null | null | null | null |
pub struct ApplepayMerchantVerificationRequest {
pub domain_names: Vec<String>,
pub merchant_connector_account_id: id_type::MerchantConnectorAccountId,
} | crates/api_models/src/verifications.rs | api_models | struct_definition | 31 | rust | ApplepayMerchantVerificationRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Tsys {} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Tsys | api::PaymentToken for | impl api::PaymentToken for for Tsys | null | null | null | null | null | null | null | null |
impl EventsConfig {
pub async fn get_event_handler(&self) -> StorageResult<EventsHandler> {
Ok(match self {
Self::Kafka { kafka } => EventsHandler::Kafka(
KafkaProducer::create(kafka)
.await
.change_context(StorageError::InitializationError... | crates/router/src/events.rs | router | impl_block | 132 | rust | null | EventsConfig | null | impl EventsConfig | null | null | null | null | null | null | null | null |
pub fn get_secret(&self) -> String {
self.0.clone()
} | crates/router/src/types/domain/user.rs | router | function_signature | 18 | rust | null | null | null | null | get_secret | null | null | null | null | null | null | null |
File: crates/euclid/src/frontend/dir/enums.rs
use strum::VariantNames;
use utoipa::ToSchema;
use crate::enums::collect_variants;
pub use crate::enums::{
AuthenticationType, CaptureMethod, CardNetwork, Country, Country as BusinessCountry,
Country as BillingCountry, Country as IssuerCountry, Country as Acquirer... | crates/euclid/src/frontend/dir/enums.rs | euclid | full_file | 2,711 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/surcharge_decision_configs.rs
Public structs: 5
use common_utils::{
consts::SURCHARGE_PERCENTAGE_PRECISION_LENGTH,
events,
types::{MinorUnit, Percentage},
};
use euclid::frontend::{
ast::Program,
dir::{DirKeyKind, EuclidDirFilter},
};
use serde::{Deserialize, Serialize}... | crates/api_models/src/surcharge_decision_configs.rs | api_models | full_file | 641 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsConfirm;
let mut payload = json_payload.into_inner();
if let Err(err) = payload
.validate()
.map_err(|message| errors::ApiErrorResponse::InvalidRequestData { message })
{
return api::log_and_return_error_response(err.into());
};
... | crates/router/src/routes/payments.rs | router | impl_block | 456 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
Documentation: docs/CONTRIBUTOR_LICENSE_AGREEMENT.md
# Type: Doc File
# Contributor License Agreement
You accept and agree to the following terms and conditions for Your present and
future Contributions submitted to Juspay Technologies Private Limited, Except
for the license granted herein to Juspay Technologies Priv... | docs/CONTRIBUTOR_LICENSE_AGREEMENT.md | null | doc_file | 1,383 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct DeutschebankPaymentsResponse {
rc: String,
message: String,
timestamp: String,
back_ext_id: Option<String>,
back_rc: Option<String>,
event_id: Option<String>,
kind: Option<String>,
tx_action: Option<DeutschebankTXAction>,
tx_id: String,
amount_total: Option<Deutscheban... | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 92 | rust | DeutschebankPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Helcim {} | crates/hyperswitch_connectors/src/connectors/helcim.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Helcim | api::PaymentVoid for | impl api::PaymentVoid for for Helcim | null | null | null | null | null | null | null | null |
pub struct FraudCheckConnectorData {
pub connector: ConnectorEnum,
pub connector_name: enums::FrmConnectors,
} | crates/router/src/types/api/fraud_check.rs | router | struct_definition | 27 | rust | FraudCheckConnectorData | null | null | null | null | null | null | null | null | null | null | null |
pub fn url(mut self, url: &str) -> Self {
self.url = url.into();
self
} | crates/common_utils/src/request.rs | common_utils | function_signature | 26 | rust | null | null | null | null | url | null | null | null | null | null | null | null |
pub struct PaypalIncrementalAuthResponse {
status: PaypalIncrementalStatus,
status_details: PaypalIncrementalAuthStatusDetails,
id: String,
invoice_id: String,
custom_id: String,
links: Vec<PaypalLinks>,
amount: OrderAmount,
network_transaction_reference: PaypalNetworkTransactionReferenc... | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 116 | rust | PaypalIncrementalAuthResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Error {
pub code: String,
pub message: String,
pub details: Option<Vec<String>>,
#[serde(rename = "fieldErrors")]
pub field_errors: Option<Vec<FieldError>>,
} | crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | Error | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_user_roles_by_user_id_across_tenants(
conn: &PgPooledConn,
user_id: String,
limit: Option<u32>,
) -> StorageResult<Vec<Self>> {
let mut query = <Self as HasTable>::table()
.filter(dsl::user_id.eq(user_id))
.into_boxed();
if let Some(l... | crates/diesel_models/src/query/user_role.rs | diesel_models | function_signature | 223 | rust | null | null | null | null | list_user_roles_by_user_id_across_tenants | null | null | null | null | null | null | null |
pub fn default_output<O: EuclidParsable + 'static>(input: &str) -> ParseResult<&str, O> {
error::context(
"default_output",
sequence::preceded(
sequence::pair(skip_ws(complete::tag("default")), skip_ws(pchar::char(':'))),
skip_ws(output),
),
)(input)
} | crates/euclid/src/frontend/ast/parser.rs | euclid | function_signature | 79 | rust | null | null | null | null | default_output | null | null | null | null | null | null | null |
pub struct ConsultaOperacionesResponse {
#[serde(rename = "@xmlns:p259")]
xmlns_p259: String,
consultaoperacionesreturn: ConsultaOperacionesReturn,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | ConsultaOperacionesResponse | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Blackhawknetwork {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&BLACKHAWKNETWORK_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*BLACKHAWKNETWORK_SUPPORTED_PAYMENT_METH... | crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs | hyperswitch_connectors | impl_block | 115 | rust | null | Blackhawknetwork | ConnectorSpecifications for | impl ConnectorSpecifications for for Blackhawknetwork | null | null | null | null | null | null | null | null |
pub async fn delete_by_merchant_id_merchant_connector_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
merchant_connector_id: &common_utils::id_type::MerchantConnectorAccountId,
) -> StorageResult<bool> {
generics::generic_delete::<<Self as HasTable>::Table, ... | crates/diesel_models/src/query/merchant_connector_account.rs | diesel_models | function_signature | 120 | rust | null | null | null | null | delete_by_merchant_id_merchant_connector_id | null | null | null | null | null | null | null |
impl WebhooksFlowError {
pub(crate) fn is_webhook_delivery_retryable_error(&self) -> bool {
match self {
Self::MerchantConfigNotFound
| Self::MerchantWebhookDetailsNotFound
| Self::MerchantWebhookUrlNotConfigured
| Self::OutgoingWebhookResponseEncodingFailed =... | crates/router/src/core/errors.rs | router | impl_block | 167 | rust | null | WebhooksFlowError | null | impl WebhooksFlowError | null | null | null | null | null | null | null | null |
pub fn get_description_category() -> JsResult {
let keys = dir::DirKeyKind::VARIANTS
.iter()
.copied()
.filter(|s| s != &"Connector")
.collect::<Vec<&'static str>>();
let mut category: HashMap<Option<&str>, Vec<types::Details<'_>>> = HashMap::new();
for key in keys {
... | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 191 | rust | null | null | null | null | get_description_category | null | null | null | null | null | null | null |
pub struct ClientReferenceInformation {
code: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | ClientReferenceInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct DeviceData {
accept_header: String,
browser: Browser,
ip_address: Secret<String, IpAddress>,
language: String,
mobile: Option<Mobile>,
screen_color_depth: u8,
screen_height: u32,
screen_width: u32,
timezone: String,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 68 | rust | DeviceData | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
refund: SquareRefundResponseDetails,
} | crates/hyperswitch_connectors/src/connectors/square/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
/// Panics if `json_payload` array does not contain one `GetSdkEventMetricRequest` element.
pub async fn get_sdk_event_metrics(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<[GetSdkEventMetricRequest; 1]>,
) -> impl Responder {
// safety: This s... | crates/router/src/analytics.rs | router | function_signature | 260 | rust | null | null | null | null | get_sdk_event_metrics | null | null | null | null | null | null | null |
impl ExtractedCardInfo {
fn new(
co_badged_card_data: Option<api_models::payment_methods::CoBadgedCardData>,
card_type: Option<String>,
card_isin: Option<Secret<String>>,
) -> Self {
Self {
co_badged_card_data,
card_type,
card_isin,
}
... | crates/router/src/core/debit_routing.rs | router | impl_block | 96 | rust | null | ExtractedCardInfo | null | impl ExtractedCardInfo | null | null | null | null | null | null | null | null |
pub struct SingleUseMandate {
pub amount: i64,
pub currency: storage_enums::Currency,
} | crates/diesel_models/src/mandate.rs | diesel_models | struct_definition | 27 | rust | SingleUseMandate | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/gocardless.rs
use masking::Secret;
use router::types::{self, domain, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct GocardlessTest;
impl ConnectorActions for GocardlessTest {}
impl utils::Connector for Go... | crates/router/tests/connectors/gocardless.rs | router | full_file | 2,935 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl TenantId {
/// Get the default global tenant ID
pub fn get_default_global_tenant_id() -> Self {
Self(super::LengthId::new_unchecked(
super::AlphaNumericId::new_unchecked(DEFAULT_GLOBAL_TENANT_ID.to_string()),
))
}
/// Get tenant id from String
pub fn try_from_string... | crates/common_utils/src/id_type/tenant.rs | common_utils | impl_block | 107 | rust | null | TenantId | null | impl TenantId | null | null | null | null | null | null | null | null |
pub struct PazeToken {
pub payment_token: NetworkTokenNumber,
pub token_expiration_month: Secret<String>,
pub token_expiration_year: Secret<String>,
pub payment_account_reference: Secret<String>,
} | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | 45 | rust | PazeToken | null | null | null | null | null | null | null | null | null | null | null |
pub async fn change_password(
state: SessionState,
request: user_api::ChangePasswordRequest,
user_from_token: auth::UserFromToken,
) -> UserResponse<()> {
let user: domain::UserFromStorage = state
.global_store
.find_user_by_id(&user_from_token.user_id)
.await
.change_con... | crates/router/src/core/user.rs | router | function_signature | 374 | rust | null | null | null | null | change_password | null | null | null | null | null | null | null |
#[cfg(feature = "olap")]
impl TryFrom<domain::Event> for api_models::webhook_events::EventRetrieveResponse {
type Error = error_stack::Report<errors::ApiErrorResponse>;
fn try_from(item: domain::Event) -> Result<Self, Self::Error> {
use crate::utils::OptionExt;
// We only allow retrieving eve... | crates/router/src/types/transformers.rs#chunk2 | router | chunk | 3,461 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Digitalvirgo {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&DIGITALVIRGO_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*DIGITALVIRGO_SUPPORTED_PAYMENT_METHODS)
}
... | crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | hyperswitch_connectors | impl_block | 115 | rust | null | Digitalvirgo | ConnectorSpecifications for | impl ConnectorSpecifications for for Digitalvirgo | null | null | null | null | null | null | null | null |
pub struct TokenizePaymentMethodData {
id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | TokenizePaymentMethodData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn perform_payments_sync(
state: &SessionState,
process: &storage::ProcessTracker,
profile: &domain::Profile,
merchant_context: domain::MerchantContext,
tracking_data: &pcr::RevenueRecoveryWorkflowTrackingData,
revenue_recovery_payment_data: &pcr::RevenueRecoveryPaymentData,
paymen... | crates/router/src/core/revenue_recovery.rs | router | function_signature | 281 | rust | null | null | null | null | perform_payments_sync | null | null | null | null | null | null | null |
pub struct Mifinity {
amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | struct_definition | 28 | rust | Mifinity | null | null | null | null | null | null | null | null | null | null | null |
pub async fn contract_based_routing_setup_config(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<routing_types::ToggleDynamicRoutingPath>,
query: web::Query<api_models::routing::ToggleDynamicRoutingQuery>,
json_payload: Option<web::Json<routing_types::ContractBasedRoutingConfig>>,
) -... | crates/router/src/routes/routing.rs | router | function_signature | 363 | rust | null | null | null | null | contract_based_routing_setup_config | null | null | null | null | null | null | null |
pub fn get_storage_type(&self) -> &StorageType {
match self {
Self::StorageTypeEnum { value, .. } => value,
}
} | crates/router_derive/src/macros/diesel.rs | router_derive | function_signature | 34 | rust | null | null | null | null | get_storage_type | null | null | null | null | null | null | null |
impl KafkaMessage for OutgoingWebhookEvent {
fn event_type(&self) -> EventType {
EventType::OutgoingWebhookLogs
}
fn key(&self) -> String {
self.event_id.clone()
}
} | crates/router/src/events/outgoing_webhook_logs.rs | router | impl_block | 49 | rust | null | OutgoingWebhookEvent | KafkaMessage for | impl KafkaMessage for for OutgoingWebhookEvent | null | null | null | null | null | null | null | null |
pub struct RoutingAlgorithmMetadata {
pub algorithm_id: id_type::RoutingId,
pub name: String,
pub description: Option<String>,
pub kind: enums::RoutingAlgorithmKind,
pub created_at: time::PrimitiveDateTime,
pub modified_at: time::PrimitiveDateTime,
pub algorithm_for: enums::TransactionType,
... | crates/diesel_models/src/routing_algorithm.rs | diesel_models | struct_definition | 71 | rust | RoutingAlgorithmMetadata | null | null | null | null | null | null | null | null | null | null | null |
pub struct ReversalInformation {
amount_details: Amount,
reason: String,
}
impl TryFrom<&BarclaycardRouterData<&PaymentsCancelRouterData>> for BarclaycardVoidRequest {
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(
value: &BarclaycardRouterData<&PaymentsCancelRouterData>... | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs#chunk2 | hyperswitch_connectors | chunk | 3,150 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
Public functions: 1
Public structs: 55
use std::collections::BTreeMap;
use api_models::webhooks::IncomingWebhookEvent;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::{Encode, OptionExt, ValueEx... | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs#chunk0 | hyperswitch_connectors | chunk | 8,182 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_user_theme_using_theme_id(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse {
let flow = Flow::GetUserThemeUsingThemeId;
let payload = path.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
payloa... | crates/router/src/routes/user/theme.rs | router | function_signature | 150 | rust | null | null | null | null | get_user_theme_using_theme_id | null | null | null | null | null | null | null |
pub struct IatapayErrorResponse {
pub status: Option<u16>,
pub error: String,
pub message: Option<String>,
pub reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | IatapayErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PostAuthenticationResponse {
pub trans_status: String,
pub authentication_value: Option<masking::Secret<String>>,
pub eci: Option<String>,
} | crates/router/src/types/api/authentication.rs | router | struct_definition | 35 | rust | PostAuthenticationResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn use_legacy_version(&self) -> bool {
self.config.use_legacy_version
} | crates/drainer/src/services.rs | drainer | function_signature | 20 | rust | null | null | null | null | use_legacy_version | null | null | null | null | null | null | null |
pub struct CustomData {
ref1: String,
ref2: String,
ref3: String,
ref4: String,
ref5: String,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | CustomData | null | null | null | null | null | null | null | null | null | null | null |
pub struct Cybersource {
amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/cybersource.rs | hyperswitch_connectors | struct_definition | 28 | rust | Cybersource | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/payouts/transformers.rs
use std::collections::HashMap;
use common_utils::link_utils::EnabledPaymentMethod;
#[cfg(all(feature = "v1", feature = "olap"))]
use crate::types::transformers::ForeignInto;
#[cfg(feature = "olap")]
use crate::types::{api::payments, domain, storage};
use crate::{
... | crates/router/src/core/payouts/transformers.rs | router | full_file | 1,277 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardPaymentInformation {
card: Card,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | CardPaymentInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn perform_decide_gateway_call_with_open_router<F, D>(
state: &SessionState,
mut routable_connectors: Vec<api_routing::RoutableConnectorChoice>,
profile_id: &common_utils::id_type::ProfileId,
payment_attempt: &oss_storage::PaymentAttempt,
is_elimination_enabled: bool,
old_payment_data:... | crates/router/src/core/payments/routing.rs | router | function_signature | 825 | rust | null | null | null | null | perform_decide_gateway_call_with_open_router | null | null | null | null | null | null | null |
pub struct PaymentMethodsMigrateForm {
#[multipart(limit = "1MB")]
pub file: bytes::Bytes,
pub merchant_id: text::Text<common_utils::id_type::MerchantId>,
pub merchant_connector_id:
Option<text::Text<common_utils::id_type::MerchantConnectorAccountId>>,
pub merchant_connector_ids: Option<t... | crates/payment_methods/src/core/migration.rs | payment_methods | struct_definition | 82 | rust | PaymentMethodsMigrateForm | null | null | null | null | null | null | null | null | null | null | null |
pub struct BamboraErrorResponse {
pub code: i32,
pub category: i32,
pub message: String,
pub reference: String,
pub details: Option<Vec<ErrorDetail>>,
pub validation: Option<CardValidation>,
pub card: Option<CardError>,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 62 | rust | BamboraErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsTokenReference(
pub HashMap<common_utils::id_type::MerchantConnectorAccountId, ConnectorTokenReferenceRecord>,
); | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | struct_definition | 26 | rust | PaymentsTokenReference | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovalnetCaptureTransactionData {
pub amount: Option<MinorUnit>,
pub capture: CaptureData,
pub currency: Option<common_enums::Currency>,
pub order_no: Option<String>,
pub payment_type: String,
pub status: NovalnetTransactionStatus,
pub status_code: Option<u64>,
pub test_mode: O... | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 91 | rust | NovalnetCaptureTransactionData | null | null | null | null | null | null | null | null | null | null | null |
/// Returns the profile ID of the event.
pub fn get_profile_id(&self) -> &str {
self.profile_id.get_string_repr()
} | crates/hyperswitch_interfaces/src/events/routing_api_logs.rs | hyperswitch_interfaces | function_signature | 32 | rust | null | null | null | null | get_profile_id | null | null | null | null | null | null | null |
pub fn get_three_ds_decision_rule_keys() -> JsResult {
let keys = <ThreeDSDecisionRule as EuclidDirFilter>::ALLOWED;
Ok(serde_wasm_bindgen::to_value(keys)?)
} | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 46 | rust | null | null | null | null | get_three_ds_decision_rule_keys | null | null | null | null | null | null | null |
pub struct OrganizationCreateRequest {
/// Name of the organization
pub organization_name: String,
/// Details about the organization
#[schema(value_type = Option<Object>)]
pub organization_details: Option<pii::SecretSerdeValue>,
/// Metadata is useful for storing additional, unstructured info... | crates/api_models/src/organization.rs | api_models | struct_definition | 92 | rust | OrganizationCreateRequest | null | null | null | null | null | null | null | null | null | null | null |
impl Hypersense {
pub fn server(state: AppState) -> Scope {
web::scope("/hypersense")
.app_data(web::Data::new(state))
.service(
web::resource("/token")
.route(web::get().to(hypersense_routes::get_hypersense_token)),
)
.serv... | crates/router/src/routes/app.rs | router | impl_block | 144 | rust | null | Hypersense | null | impl Hypersense | null | null | null | null | null | null | null | null |
pub fn new() -> Self {
Self(FxHashMap::default())
} | crates/hyperswitch_constraint_graph/src/types.rs | hyperswitch_constraint_graph | function_signature | 17 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct OrderInformation {
amount_details: Amount,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | OrderInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn initiate_payment_link_flow(
state: SessionState,
merchant_context: domain::MerchantContext,
merchant_id: common_utils::id_type::MerchantId,
payment_id: common_utils::id_type::PaymentId,
) -> RouterResponse<services::PaymentLinkFormData> {
let (_, payment_details, payment_link_config) =
... | crates/router/src/core/payment_link.rs | router | function_signature | 355 | rust | null | null | null | null | initiate_payment_link_flow | null | null | null | null | null | null | null |
pub async fn payouts_cancel() {} | crates/openapi/src/routes/payouts.rs | openapi | function_signature | 7 | rust | null | null | null | null | payouts_cancel | null | null | null | null | null | null | null |
File: crates/router/tests/payments.rs
#![allow(
clippy::expect_used,
clippy::unwrap_in_result,
clippy::unwrap_used,
clippy::print_stdout
)]
mod utils;
use std::{borrow::Cow, sync::Arc};
use common_utils::{id_type, types::MinorUnit};
use router::{
configs,
core::payments,
db::StorageImpl,... | crates/router/tests/payments.rs | router | full_file | 6,381 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/test_utils/tests/connectors/adyen_uk_ui.rs
use serial_test::serial;
use thirtyfour::{prelude::*, WebDriver};
use crate::{selenium::*, tester};
struct AdyenSeleniumTest;
impl SeleniumTest for AdyenSeleniumTest {
fn get_connector_name(&self) -> String {
"adyen_uk".to_string()
}
}
async f... | crates/test_utils/tests/connectors/adyen_uk_ui.rs | test_utils | full_file | 7,604 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BarclaycardConsumerAuthInformation {
ucaf_collection_indicator: Option<String>,
cavv: Option<Secret<String>>,
ucaf_authentication_data: Option<Secret<String>>,
xid: Option<String>,
directory_server_transaction_id: Option<Secret<String>>,
specification_version: Option<SemanticVersion>,... | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 468 | rust | BarclaycardConsumerAuthInformation | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/webhooks.rs
Public functions: 5
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{
api_locking,
webhooks::{self, types},
},
services::{api, authentication as auth},
ty... | crates/router/src/routes/webhooks.rs | router | full_file | 1,425 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl GlobalPaymentMethodId {
/// Create a new GlobalPaymentMethodId from cell id information
pub fn generate(cell_id: &CellId) -> error_stack::Result<Self, GlobalPaymentMethodIdError> {
let global_id = GlobalId::generate(cell_id, GlobalEntity::PaymentMethod);
Ok(Self(global_id))
}
/// G... | crates/common_utils/src/id_type/global_id/payment_methods.rs | common_utils | impl_block | 171 | rust | null | GlobalPaymentMethodId | null | impl GlobalPaymentMethodId | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payments/metrics/sessionized_metrics/payment_count.rs
use std::collections::HashSet;
use api_models::analytics::{
payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_stack::Res... | crates/analytics/src/payments/metrics/sessionized_metrics/payment_count.rs | analytics | full_file | 931 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Authorizedotnet {
pub fn new() -> &'static Self {
&Self {
amount_convertor: &FloatMajorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | hyperswitch_connectors | impl_block | 36 | rust | null | Authorizedotnet | null | impl Authorizedotnet | null | null | null | null | null | null | null | null |
pub struct RuleResults {
id: Option<String>,
decision: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | RuleResults | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payments_list_by_filter(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
payload: web::Json<payment_types::PaymentListFilterConstraints>,
) -> impl Responder {
let flow = Flow::PaymentsList;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/payments.rs | router | function_signature | 189 | rust | null | null | null | null | payments_list_by_filter | null | null | null | null | null | null | null |
pub struct ChildTransactionsInResponse {
id: String,
success: bool,
created_at: String,
total: f64,
} | crates/hyperswitch_connectors/src/connectors/stax/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | ChildTransactionsInResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentsPostSessionTokensResponse
{
"type": "object",
"required": [
"payment_id",
"status"
],
"properties": {
"payment_id": {
"type": "string",
"description": "The identifier for the payment"
},
"next_action": {
"allOf": [
{
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 153 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentsPostSessionTokensResponse"
] | null | null | null | null |
File: crates/api_models/src/payments/additional_info.rs
Public structs: 13
use common_utils::new_type::{
MaskedBankAccount, MaskedIban, MaskedRoutingNumber, MaskedSortCode, MaskedUpiVpaId,
};
use masking::Secret;
use utoipa::ToSchema;
use crate::enums as api_enums;
#[derive(Eq, PartialEq, Clone, Debug, serde::D... | crates/api_models/src/payments/additional_info.rs | api_models | full_file | 2,426 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.