text string | file_path string | module string | type string | tokens int64 | language string | struct_name string | type_name string | trait_name string | impl_type string | function_name string | source string | section string | keys list | macro_type string | url string | title string | chunk_index int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pub struct ConnectorParamsWithSecondaryBaseUrl {
/// base url
pub base_url: String,
/// secondary base url
pub secondary_base_url: String,
} | crates/hyperswitch_domain_models/src/connector_endpoints.rs | hyperswitch_domain_models | struct_definition | 35 | rust | ConnectorParamsWithSecondaryBaseUrl | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Worldpayvantiv {} | crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Worldpayvantiv | api::PaymentSession for | impl api::PaymentSession for for Worldpayvantiv | null | null | null | null | null | null | null | null |
pub fn output<O: EuclidParsable>(input: &str) -> ParseResult<&str, O> {
O::parse_output(input)
} | crates/euclid/src/frontend/ast/parser.rs | euclid | function_signature | 33 | rust | null | null | null | null | output | null | null | null | null | null | null | null |
impl api::MandateSetup for CtpMastercard {} | crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs | hyperswitch_connectors | impl_block | 13 | rust | null | CtpMastercard | api::MandateSetup for | impl api::MandateSetup for for CtpMastercard | null | null | null | null | null | null | null | null |
pub struct Decision {
#[serde(with = "common_utils::custom_serde::iso8601")]
created_at: PrimitiveDateTime,
checkpoint_action: SignifydPaymentStatus,
checkpoint_action_reason: Option<String>,
checkpoint_action_policy: Option<String>,
score: Option<f64>,
} | crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs | hyperswitch_connectors | struct_definition | 65 | rust | Decision | null | null | null | null | null | null | null | null | null | null | null |
pub async fn customers_list() {} | crates/openapi/src/routes/customers.rs | openapi | function_signature | 7 | rust | null | null | null | null | customers_list | null | null | null | null | null | null | null |
pub struct CybersourceFulfillResponse {
id: String,
status: CybersourcePayoutStatus,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | CybersourceFulfillResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct SamsungPayFluidDataValue {
public_key_hash: Secret<String>,
version: String,
data: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | SamsungPayFluidDataValue | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ApplepayInitiative
{
"type": "string",
"enum": [
"web",
"ios"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 38 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ApplepayInitiative"
] | null | null | null | null |
pub struct BatchEncryptDataRequest {
#[serde(flatten)]
pub identifier: Identifier,
pub data: DecryptedDataGroup,
} | crates/common_utils/src/types/keymanager.rs | common_utils | struct_definition | 29 | rust | BatchEncryptDataRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct CheckoutOptions {
auto_capture: bool,
} | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | CheckoutOptions | null | null | null | null | null | null | null | null | null | null | null |
pub fn extract_domain(&self) -> UserResult<&str> {
let (_username, domain) = self
.peek()
.split_once('@')
.ok_or(UserErrors::InternalServerError)?;
Ok(domain)
} | crates/router/src/types/domain/user.rs | router | function_signature | 49 | rust | null | null | null | null | extract_domain | null | null | null | null | null | null | null |
pub async fn list_de_euclid_routing_algorithms(
state: &SessionState,
routing_list_request: ListRountingAlgorithmsRequest,
) -> RoutingResult<Vec<api_routing::RoutingDictionaryRecord>> {
logger::debug!("decision_engine_euclid: list api call for euclid routing algorithms");
let created_by = routing_list_... | crates/router/src/core/payments/routing/utils.rs | router | function_signature | 232 | rust | null | null | null | null | list_de_euclid_routing_algorithms | null | null | null | null | null | null | null |
pub struct RazorpayAuthType {
pub(super) razorpay_id: Secret<String>,
pub(super) razorpay_secret: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | RazorpayAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(
status: Option<IntentStatus>,
currency: Option<Currency>,
profile_id: Option<String>,
connector: Option<String>,
auth_type: Option<AuthenticationType>,
payment_method: Option<String>,
payment_method_type: Option<String>,
card_network: Option<St... | crates/api_models/src/analytics/payment_intents.rs | api_models | function_signature | 181 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub(crate) fn get_bluecode_webhook_event(
status: BluecodePaymentStatus,
) -> api_models::webhooks::IncomingWebhookEvent {
match status {
BluecodePaymentStatus::Completed => {
api_models::webhooks::IncomingWebhookEvent::PaymentIntentSuccess
}
BluecodePaymentStatus::PaymentIni... | crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs | hyperswitch_connectors | function_signature | 141 | rust | null | null | null | null | get_bluecode_webhook_event | null | null | null | null | null | null | null |
pub fn get_payment_method_id(&self) -> Option<String> {
match self {
Self::PaymentMethod {
payment_method_id, ..
} => Some(payment_method_id.to_owned()),
Self::Payment { .. }
| Self::Refund { .. }
| Self::Dispute { .. }
| Se... | crates/api_models/src/webhooks.rs | api_models | function_signature | 119 | rust | null | null | null | null | get_payment_method_id | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/payload.rs
use masking::Secret;
use router::types::{self, api, domain, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct PayloadTest;
impl ConnectorActions for PayloadTest {}
impl utils::Connector for Payloa... | crates/router/tests/connectors/payload.rs | router | full_file | 2,915 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl events::ApiEventMetric for DecisionManager {
fn get_api_event_type(&self) -> Option<events::ApiEventsType> {
Some(events::ApiEventsType::Routing)
}
} | crates/api_models/src/conditional_configs.rs | api_models | impl_block | 42 | rust | null | DecisionManager | events::ApiEventMetric for | impl events::ApiEventMetric for for DecisionManager | null | null | null | null | null | null | null | null |
pub async fn check_two_factor_auth_status_with_attempts(
state: SessionState,
user_token: auth::UserIdFromAuth,
) -> UserResponse<user_api::TwoFactorStatus> {
let user_from_db: domain::UserFromStorage = state
.global_store
.find_user_by_id(&user_token.user_id)
.await
.change_... | crates/router/src/core/user.rs | router | function_signature | 353 | rust | null | null | null | null | check_two_factor_auth_status_with_attempts | null | null | null | null | null | null | null |
pub fn get_request_payment_method_billing(&self) -> Option<&Address> {
self.payment_method_billing.as_ref()
} | crates/hyperswitch_domain_models/src/payment_address.rs | hyperswitch_domain_models | function_signature | 26 | rust | null | null | null | null | get_request_payment_method_billing | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.StripeSplitPaymentRequest
{
"type": "object",
"description": "Fee information for Split Payments to be charged on the payment being collected for Stripe",
"required": [
"charge_type",
"application_fees",
"transfer_account_id"
],
"properties": {
"charge_ty... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 187 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"StripeSplitPaymentRequest"
] | null | null | null | null |
impl WiseHttpStatus {
pub fn get_status(&self) -> String {
match self {
Self::String(val) => val.clone(),
Self::Number(val) => val.to_string(),
}
}
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | impl_block | 45 | rust | null | WiseHttpStatus | null | impl WiseHttpStatus | null | null | null | null | null | null | null | null |
pub struct ApiEventFilterValue {
pub dimension: ApiEventDimensions,
pub values: Vec<String>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 23 | rust | ApiEventFilterValue | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PayoutEntityType
{
"type": "string",
"description": "Type of entity to whom the payout is being carried out to, select from the given list of options",
"enum": [
"Individual",
"Company",
"NonProfit",
"PublicSector",
"NaturalPerson",
"lowercase",
"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 86 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PayoutEntityType"
] | null | null | null | null |
pub struct AirwallexShippingData {
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
phone_number: Option<Secret<String>>,
address: AirwallexPLShippingAddress,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 46 | rust | AirwallexShippingData | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Stripe | api::RefundExecute for | impl api::RefundExecute for for Stripe | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/{customer_id}/payment_methods/{payment_method_id}/default"
{
"post": {
"tags": [
"Payment Methods"
],
"summary": "Payment Method - Set Default Payment Method for Customer",
"description": "Set the Payment Method as Default for the Customer.",
"operationId": "Set t... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 329 | .json | null | null | null | null | null | openapi_spec | paths | [
"/{customer_id}/payment_methods/{payment_method_id}/default"
] | null | null | null | null |
pub struct Payer {
pub name: Option<Secret<String>>,
pub email: Option<Email>,
pub document: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | Payer | null | null | null | null | null | null | null | null | null | null | null |
pub struct SetupMandateRequestData {
pub currency: storage_enums::Currency,
pub payment_method_data: PaymentMethodData,
pub amount: Option<i64>,
pub confirm: bool,
pub statement_descriptor_suffix: Option<String>,
pub customer_acceptance: Option<common_payments_types::CustomerAcceptance>,
pub... | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 345 | rust | SetupMandateRequestData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics.rs
Public functions: 1
Public structs: 54
use std::collections::HashSet;
pub use common_utils::types::TimeRange;
use common_utils::{events::ApiEventMetric, pii::EmailStrategy, types::authentication::AuthInfo};
use masking::Secret;
use self::{
active_payments::ActivePayment... | crates/api_models/src/analytics.rs | api_models | full_file | 3,996 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsAggregate;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
payload,
|state, auth: auth::AuthenticationData, req, _| {
let merchant_context = domain::MerchantContext::NormalMerchant... | crates/router/src/routes/payments.rs | router | impl_block | 162 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub fn get_tokenize_card_form_records(
form: CardNetworkTokenizeForm,
) -> Result<
(
id_type::MerchantId,
Vec<payment_methods_api::CardNetworkTokenizeRequest>,
),
errors::ApiErrorResponse,
> {
match parse_csv(&form.merchant_id, form.file.data.to_bytes()) {
Ok(records) => {
... | crates/router/src/core/payment_methods/tokenize.rs | router | function_signature | 149 | rust | null | null | null | null | get_tokenize_card_form_records | null | null | null | null | null | null | null |
pub fn get_webhook_details_as_value(
&self,
) -> CustomResult<Option<serde_json::Value>, errors::ParsingError> {
self.webhook_details
.as_ref()
.map(|webhook_details| webhook_details.encode_to_value())
.transpose()
} | crates/api_models/src/admin.rs | api_models | function_signature | 62 | rust | null | null | null | null | get_webhook_details_as_value | null | null | null | null | null | null | null |
pub struct StoredPaymentCounterparty<'a, F> {
pub item: &'a AdyenPlatformRouterData<&'a PayoutsRouterData<F>>,
pub stored_payment_method_id: String,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 43 | rust | StoredPaymentCounterparty | null | null | null | null | null | null | null | null | null | null | null |
pub struct VariableCancelInput {
input: CancelInputData,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | VariableCancelInput | null | null | null | null | null | null | null | null | null | null | null |
pub struct ActionUrlRequest {
pub connector: enums::Connector,
pub connector_id: id_type::MerchantConnectorAccountId,
pub return_url: String,
} | crates/api_models/src/connector_onboarding.rs | api_models | struct_definition | 34 | rust | ActionUrlRequest | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsExternalAuthentication;
let mut payload = json_payload.into_inner();
let payment_id = path.into_inner();
tracing::Span::current().record("payment_id", payment_id.get_string_repr());
payload.payment_id = payment_id;
let locking_action = payload.get_lock... | crates/router/src/routes/payments.rs | router | impl_block | 195 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct OpennodePaymentsResponse {
data: OpennodePaymentsResponseData,
} | crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | OpennodePaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
/// Validation for the Email client specific configurations
pub fn validate(&self) -> Result<(), &'static str> {
match &self.client_config {
EmailClientConfigs::Ses { ref aws_ses } => aws_ses.validate(),
EmailClientConfigs::Smtp { ref smtp } => smtp.validate(),
EmailClien... | crates/external_services/src/email.rs | external_services | function_signature | 81 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
impl api::RefundExecute for Authorizedotnet {} | crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Authorizedotnet | api::RefundExecute for | impl api::RefundExecute for for Authorizedotnet | null | null | null | null | null | null | null | null |
impl FromStr for AciPaymentStatus {
type Err = error_stack::Report<errors::ConnectorError>;
fn from_str(s: &str) -> Result<Self, Self::Err> {
if FAILURE_CODES.contains(&s) {
Ok(Self::Failed)
} else if PENDING_CODES.contains(&s) {
Ok(Self::Pending)
} else if SUCCES... | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | impl_block | 128 | rust | null | AciPaymentStatus | FromStr for | impl FromStr for for AciPaymentStatus | null | null | null | null | null | null | null | null |
impl api::Payment for Powertranz {} | crates/hyperswitch_connectors/src/connectors/powertranz.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Powertranz | api::Payment for | impl api::Payment for for Powertranz | null | null | null | null | null | null | null | null |
impl PartialEq for RefundMetricsBucketIdentifier {
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/refunds.rs | api_models | impl_block | 70 | rust | null | RefundMetricsBucketIdentifier | PartialEq for | impl PartialEq for for RefundMetricsBucketIdentifier | null | null | null | null | null | null | null | null |
pub struct SilverflowWebhookEvent {
pub event_type: String,
pub event_data: SilverflowWebhookEventData,
pub event_id: String,
pub created: String,
pub version: i32,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 48 | rust | SilverflowWebhookEvent | null | null | null | null | null | null | null | null | null | null | null |
pub struct Payment {
pub id: String,
pub status: PaymentStatus,
#[serde(skip_deserializing)]
pub capture_method: CaptureMethod,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | Payment | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/profile/profile--update-default-fallback-routing-algorithm.mdx
# Type: Doc File
---
openapi: patch /v2/profiles/{id}/fallback-routing
--- | api-reference/v2/profile/profile--update-default-fallback-routing-algorithm.mdx | null | doc_file | 42 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct SyncRequest {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_txn_id: String,
} | crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | hyperswitch_connectors | struct_definition | 49 | rust | SyncRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct HyperwalletRouterData<T> {
pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs | hyperswitch_connectors | struct_definition | 50 | rust | HyperwalletRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_network_transaction_id(&self) -> Option<String> {
match self {
Self::TransactionResponse { network_txn_id, .. } => network_txn_id.clone(),
_ => None,
}
} | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | function_signature | 45 | rust | null | null | null | null | get_network_transaction_id | null | null | null | null | null | null | null |
impl api::PaymentCapture for Custombilling {} | crates/hyperswitch_connectors/src/connectors/custombilling.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Custombilling | api::PaymentCapture for | impl api::PaymentCapture for for Custombilling | null | null | null | null | null | null | null | null |
pub async fn get_mca_status(
state: &routes::SessionState,
key_store: &domain::MerchantKeyStore,
profile_id: Option<id_type::ProfileId>,
merchant_id: &id_type::MerchantId,
is_connector_agnostic_mit_enabled: bool,
connector_mandate_details: Option<CommonMandateReference>,
network_transaction_... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 263 | rust | null | null | null | null | get_mca_status | null | null | null | null | null | null | null |
pub struct MerchantConnectorDeleteResponse {
/// The identifier for the Merchant Account
#[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)]
pub merchant_id: id_type::MerchantId,
/// Unique ID of the connector
#[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_... | crates/api_models/src/admin.rs | api_models | struct_definition | 142 | rust | MerchantConnectorDeleteResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct NoParams; | crates/hyperswitch_domain_models/src/connector_endpoints.rs | hyperswitch_domain_models | struct_definition | 5 | rust | NoParams | null | null | null | null | null | null | null | null | null | null | null |
pub struct DatatransErrorResponse {
pub error: DatatransError,
} | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | DatatransErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Mollie {} | crates/hyperswitch_connectors/src/connectors/mollie.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mollie | api::PaymentCapture for | impl api::PaymentCapture for for Mollie | null | null | null | null | null | null | null | null |
pub fn get_connector_name(&self) -> common_enums::connector_enums::Connector {
self.connector_name
} | crates/api_models/src/admin.rs | api_models | function_signature | 26 | rust | null | null | null | null | get_connector_name | null | null | null | null | null | null | null |
impl api::MandateSetup for Breadpay {} | crates/hyperswitch_connectors/src/connectors/breadpay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Breadpay | api::MandateSetup for | impl api::MandateSetup for for Breadpay | null | null | null | null | null | null | null | null |
pub fn is_terminal_state(self) -> bool {
matches!(self, Self::Success | Self::Failure)
} | crates/common_enums/src/enums.rs | common_enums | function_signature | 25 | rust | null | null | null | null | is_terminal_state | null | null | null | null | null | null | null |
pub async fn create_organization(
state: SessionState,
req: api::OrganizationCreateRequest,
) -> RouterResponse<api::OrganizationResponse> {
let db_organization = ForeignFrom::foreign_from(req);
state
.accounts_store
.insert_organization(db_organization)
.await
.to_duplic... | crates/router/src/core/admin.rs | router | function_signature | 129 | rust | null | null | null | null | create_organization | 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 OpennodePaymentsResponseData {
id: String,
hosted_checkout_url: String,
status: OpennodePaymentStatus,
order_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | OpennodePaymentsResponseData | null | null | null | null | null | null | null | null | null | null | null |
impl api::PayoutRecipient for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Nomupay | api::PayoutRecipient for | impl api::PayoutRecipient for for Nomupay | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/payouts.rs
Public functions: 1
Public structs: 3
use common_utils::{pii, types::MinorUnit};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{self, Deserialize, Serialize};
use time::PrimitiveDateTime;
use crate::{enums as storage_enums, schema::p... | crates/diesel_models/src/payouts.rs | diesel_models | full_file | 2,018 | null | null | null | null | null | null | null | null | null | null | null | null | null |
/// Build the gRPC Headers for Unified Connector Service Request
pub fn build_unified_connector_service_grpc_headers(
meta: ConnectorAuthMetadata,
external_vault_proxy_metadata: Option<String>,
grpc_headers: GrpcHeaders,
) -> Result<MetadataMap, UnifiedConnectorServiceError> {
let mut metadata = Metadat... | crates/external_services/src/grpc_client/unified_connector_service.rs | external_services | function_signature | 586 | rust | null | null | null | null | build_unified_connector_service_grpc_headers | null | null | null | null | null | null | null |
pub struct StoreGenericReq {
pub merchant_id: id_type::MerchantId,
pub merchant_customer_id: id_type::CustomerId,
#[serde(rename = "enc_card_data")]
pub enc_data: String,
pub ttl: i64,
} | crates/router/src/core/payment_methods/transformers.rs | router | struct_definition | 54 | rust | StoreGenericReq | null | null | null | null | null | null | null | null | null | null | null |
pub struct GrpcClientSettings {
#[cfg(feature = "dynamic_routing")]
/// Configs for Dynamic Routing Client
pub dynamic_routing_client: Option<DynamicRoutingClientConfig>,
#[cfg(feature = "revenue_recovery")]
/// Configs for Recovery Decider Client
pub recovery_decider_client: Option<RecoveryDeci... | crates/external_services/src/grpc_client.rs | external_services | struct_definition | 99 | rust | GrpcClientSettings | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_resource_id<T, F>(
response: WorldpayPaymentsResponse,
connector_transaction_id: Option<String>,
transform_fn: F,
) -> Result<T, error_stack::Report<errors::ConnectorError>>
where
F: Fn(String) -> T,
{
let optional_reference_id = response
.other_fields
.as_ref()
.a... | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | function_signature | 337 | rust | null | null | null | null | get_resource_id | null | null | null | null | null | null | null |
pub async fn construct_router_data_to_update_calculated_tax<'a, F, T>(
state: &'a SessionState,
payment_data: PaymentData<F>,
connector_id: &str,
merchant_context: &domain::MerchantContext,
customer: &'a Option<domain::Customer>,
merchant_connector_account: &helpers::MerchantConnectorAccountType... | crates/router/src/core/payments/transformers.rs | router | function_signature | 172 | rust | null | null | null | null | construct_router_data_to_update_calculated_tax | null | null | null | null | null | null | null |
pub struct AuthorizedotnetSetupMandateResponse {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
customer_payment_profile_id_list: Vec<String>,
customer_profile_id: Option<String>,
#[serde(rename = "customerPaymentProfileId")]
customer_payment_profile_id: Option<String>,
validation_dire... | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 86 | rust | AuthorizedotnetSetupMandateResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/organization.rs
Public functions: 1
Public structs: 6
use common_enums::OrganizationType;
use common_utils::{id_type, pii};
use utoipa::ToSchema;
pub struct OrganizationNew {
pub org_id: id_type::OrganizationId,
pub org_type: OrganizationType,
pub org_name: Option<String>,
}
... | crates/api_models/src/organization.rs | api_models | full_file | 891 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ArchipelAuthType {
pub(super) ca_certificate: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | ArchipelAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct Links {
rel: String,
href: String,
method: String,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | Links | null | null | null | null | null | null | null | null | null | null | null |
pub struct NewUserRole<E: Clone> {
pub user_id: String,
pub role_id: String,
pub status: UserStatus,
pub created_by: String,
pub last_modified_by: String,
pub created_at: PrimitiveDateTime,
pub last_modified: PrimitiveDateTime,
pub entity: E,
} | crates/router/src/types/domain/user.rs | router | struct_definition | 68 | rust | NewUserRole | null | null | null | null | null | null | null | null | null | null | null |
pub struct ArchipelBillingAddress {
address: Option<Secret<String>>,
postal_code: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | ArchipelBillingAddress | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/events/{merchant_id}"
{
"post": {
"tags": [
"Event"
],
"summary": "Events - List",
"description": "List all Events associated with a Merchant Account or Profile.",
"operationId": "List all Events associated with a Merchant Account or Profile",
"parameters": [
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 424 | .json | null | null | null | null | null | openapi_spec | paths | [
"/events/{merchant_id}"
] | null | null | null | null |
pub trait FileStorageInterface: dyn_clone::DynClone + Sync + Send {
/// Uploads a file to the selected storage scheme.
async fn upload_file(
&self,
file_key: &str,
file: Vec<u8>,
) -> CustomResult<(), FileStorageError>;
/// Deletes a file from the selected storage scheme.
as... | crates/external_services/src/file_storage.rs | external_services | trait_definition | 132 | rust | null | null | FileStorageInterface | null | null | null | null | null | null | null | null | null |
pub struct Nmi {
amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/nmi.rs | hyperswitch_connectors | struct_definition | 27 | rust | Nmi | null | null | null | null | null | null | null | null | null | null | null |
pub struct ProfileAcquirerUpdate {
#[schema(value_type = Option<String>, example = "M987654321")]
pub acquirer_assigned_merchant_id: Option<String>,
#[schema(value_type = Option<String>, example = "Updated Retailer Name")]
pub merchant_name: Option<String>,
#[schema(value_type = Option<String>, exam... | crates/api_models/src/profile_acquirer.rs | api_models | struct_definition | 189 | rust | ProfileAcquirerUpdate | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_theme(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
payload: web::Json<theme_api::UpdateThemeRequest>,
) -> HttpResponse {
let flow = Flow::UpdateTheme;
let theme_id = path.into_inner();
let payload = payload.into_inner();
Box::pin(api::serv... | crates/router/src/routes/user/theme.rs | router | function_signature | 142 | rust | null | null | null | null | update_theme | null | null | null | null | null | null | null |
pub fn as_bool(self) -> bool {
match self {
Self::Skip => false,
Self::Calculate => true,
}
} | crates/common_enums/src/enums.rs | common_enums | function_signature | 31 | rust | null | null | null | null | as_bool | null | null | null | null | null | null | null |
impl api::Payouts for Cybersource {} | crates/hyperswitch_connectors/src/connectors/cybersource.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Cybersource | api::Payouts for | impl api::Payouts for for Cybersource | null | null | null | null | null | null | null | null |
impl api::PaymentsPreProcessing for Nuvei {} | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Nuvei | api::PaymentsPreProcessing for | impl api::PaymentsPreProcessing for for Nuvei | null | null | null | null | null | null | null | null |
pub async fn increment_stream_index(
(index, jobs_picked) | crates/drainer/src/utils.rs | drainer | function_signature | 15 | rust | null | null | null | null | increment_stream_index | null | null | null | null | null | null | null |
impl OutgoingWebhookEvent {
#[allow(clippy::too_many_arguments)]
pub fn new(
tenant_id: common_utils::id_type::TenantId,
merchant_id: common_utils::id_type::MerchantId,
event_id: String,
event_type: OutgoingWebhookEventType,
content: Option<OutgoingWebhookEventContent>,
... | crates/router/src/events/outgoing_webhook_logs.rs | router | impl_block | 194 | rust | null | OutgoingWebhookEvent | null | impl OutgoingWebhookEvent | null | null | null | null | null | null | null | null |
pub struct EliminationRoutingPayloadWrapper {
pub updated_config: EliminationRoutingConfig,
pub algorithm_id: common_utils::id_type::RoutingId,
pub profile_id: common_utils::id_type::ProfileId,
} | crates/api_models/src/routing.rs | api_models | struct_definition | 47 | rust | EliminationRoutingPayloadWrapper | null | null | null | null | null | null | null | null | null | null | null |
pub struct NetworkTokenResponse {
pub payment_method_data: NetworkTokenDetailsPaymentMethod,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 19 | rust | NetworkTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn map_cybersource_attempt_status(
status: CybersourcePaymentStatus,
capture: bool,
) -> enums::AttemptStatus {
match status {
CybersourcePaymentStatus::Authorized => {
if capture {
// Because Cybersource will return Payment Status as Authorized even in AutoCapture Pa... | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | function_signature | 329 | rust | null | null | null | null | map_cybersource_attempt_status | null | null | null | null | null | null | null |
/// Construct a redis key from the id to be stored in redis
pub fn get_redis_key(&self) -> String {
format!("payment_method_session:{}", self.get_string_repr())
} | crates/common_utils/src/id_type/global_id/payment_methods.rs | common_utils | function_signature | 41 | rust | null | null | null | null | get_redis_key | null | null | null | null | null | null | null |
pub struct IatapayPaymentsRequest {
merchant_id: Secret<String>,
merchant_payment_id: Option<String>,
amount: FloatMajorUnit,
currency: common_enums::Currency,
country: common_enums::CountryAlpha2,
locale: String,
redirect_urls: RedirectUrls,
notification_url: String,
#[serde(skip_se... | crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs | hyperswitch_connectors | struct_definition | 118 | rust | IatapayPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RapydRefundRequest {
pub payment: String,
pub amount: Option<FloatMajorUnit>,
pub currency: Option<enums::Currency>,
} | crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | RapydRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct Amount {
pub net: CoinbaseProcessingFee,
pub gross: CoinbaseProcessingFee,
pub coinbase_fee: CoinbaseProcessingFee,
} | crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | Amount | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Globalpay {} | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Globalpay | api::MandateSetup for | impl api::MandateSetup for for Globalpay | null | null | null | null | null | null | null | null |
pub struct AverageAccumulator {
pub total: u32,
pub count: u32,
} | crates/analytics/src/sdk_events/accumulator.rs | analytics | struct_definition | 24 | rust | AverageAccumulator | null | null | null | null | null | null | null | null | null | null | null |
impl VerifyIdForUpdateCustomer<'_> {
async fn verify_id_and_get_customer_object(
&self,
db: &dyn StorageInterface,
) -> Result<domain::Customer, error_stack::Report<errors::CustomersErrorResponse>> {
let customer = db
.find_customer_by_customer_id_merchant_id(
... | crates/router/src/core/customers.rs | router | impl_block | 120 | rust | null | VerifyIdForUpdateCustomer | null | impl VerifyIdForUpdateCustomer | null | null | null | null | null | null | null | null |
pub fn into_inner(self) -> Vec<Secret<String>> {
self.0
} | crates/router/src/types/domain/user.rs | router | function_signature | 20 | rust | null | null | null | null | into_inner | null | null | null | null | null | null | null |
pub struct NameDescription {
pub name: String,
pub desc: String,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 18 | rust | NameDescription | null | null | null | null | null | null | null | null | null | null | null |
pub struct Browser {
/// Exact content of the HTTP accept headers as sent to the 3DS Requestor from the Cardholder's browser.
/// This field is limited to maximum 2048 characters and if the total length exceeds the limit, the 3DS Server
/// truncates the excess portion.
///
/// This field is requir... | crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs | hyperswitch_connectors | struct_definition | 1,806 | rust | Browser | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/frm.rs
pub mod accumulator;
mod core;
pub mod filters;
pub mod metrics;
pub mod types;
pub use accumulator::{FrmMetricAccumulator, FrmMetricsAccumulator};
pub use self::core::{get_filters, get_metrics};
| crates/analytics/src/frm.rs | analytics | full_file | 58 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payment_method_intent_create(
state: &SessionState,
req: api::PaymentMethodIntentCreate,
merchant_context: &domain::MerchantContext,
) -> RouterResponse<api::PaymentMethodResponse> {
let db = &*state.store;
let merchant_id = merchant_context.get_merchant_account().get_id();
let cust... | crates/router/src/core/payment_methods.rs | router | function_signature | 475 | rust | null | null | null | null | payment_method_intent_create | 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.