text
stringlengths 65
57.3k
| file_path
stringlengths 22
92
| module
stringclasses 38
values | type
stringclasses 7
values | struct_name
stringlengths 3
60
⌀ | impl_count
int64 0
60
⌀ | traits
listlengths 0
59
⌀ | tokens
int64 16
8.19k
| function_name
stringlengths 3
85
⌀ | type_name
stringlengths 1
67
⌀ | trait_name
stringclasses 573
values | method_count
int64 0
31
⌀ | public_method_count
int64 0
19
⌀ | submodule_count
int64 0
56
⌀ | export_count
int64 0
9
⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// Struct: PaymentSuccessCount
// File: crates/api_models/src/analytics/payments.rs
// Module: api_models
// Implementations: 0
pub struct PaymentSuccessCount
|
crates/api_models/src/analytics/payments.rs
|
api_models
|
struct_definition
|
PaymentSuccessCount
| 0
|
[] | 38
| null | null | null | null | null | null | null |
// Implementation: impl api::Refund for for Multisafepay
// File: crates/hyperswitch_connectors/src/connectors/multisafepay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::Refund for for Multisafepay
|
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 67
| null |
Multisafepay
|
api::Refund for
| 0
| 0
| null | null |
// Implementation: impl MandateSetup for for Signifyd
// File: crates/hyperswitch_connectors/src/connectors/signifyd.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl MandateSetup for for Signifyd
|
crates/hyperswitch_connectors/src/connectors/signifyd.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 58
| null |
Signifyd
|
MandateSetup for
| 0
| 0
| null | null |
// Implementation: impl api::UasPreAuthenticationV2 for for Recurly
// File: crates/hyperswitch_connectors/src/connectors/recurly.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::UasPreAuthenticationV2 for for Recurly
|
crates/hyperswitch_connectors/src/connectors/recurly.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 68
| null |
Recurly
|
api::UasPreAuthenticationV2 for
| 0
| 0
| null | null |
// Implementation: impl RequestIdStore for for KafkaStore
// File: crates/router/src/db.rs
// Module: router
// Methods: 1 total (0 public)
impl RequestIdStore for for KafkaStore
|
crates/router/src/db.rs
|
router
|
impl_block
| null | null | null | 44
| null |
KafkaStore
|
RequestIdStore for
| 1
| 0
| null | null |
// Function: elimination_routing_update_configs
// File: crates/router/src/core/routing.rs
// Module: router
pub fn elimination_routing_update_configs(
state: SessionState,
request: routing_types::EliminationRoutingConfig,
algorithm_id: common_utils::id_type::RoutingId,
profile_id: common_utils::id_type::ProfileId,
) -> RouterResponse<routing_types::RoutingDictionaryRecord>
|
crates/router/src/core/routing.rs
|
router
|
function_signature
| null | null | null | 86
|
elimination_routing_update_configs
| null | null | null | null | null | null |
// Function: get_scope
// File: crates/router/src/services/authorization/roles.rs
// Module: router
pub fn get_scope(&self) -> RoleScope
|
crates/router/src/services/authorization/roles.rs
|
router
|
function_signature
| null | null | null | 34
|
get_scope
| null | null | null | null | null | null |
// Function: get_metrics
// File: crates/analytics/src/refunds/core.rs
// Module: analytics
pub fn get_metrics(
pool: &AnalyticsProvider,
ex_rates: &Option<ExchangeRates>,
auth: &AuthInfo,
req: GetRefundMetricRequest,
) -> AnalyticsResult<RefundsMetricsResponse<RefundMetricsBucketResponse>>
|
crates/analytics/src/refunds/core.rs
|
analytics
|
function_signature
| null | null | null | 77
|
get_metrics
| null | null | null | null | null | null |
// Implementation: impl ClientSecretId
// File: crates/common_utils/src/id_type/client_secret.rs
// Module: common_utils
// Methods: 1 total (1 public)
impl ClientSecretId
|
crates/common_utils/src/id_type/client_secret.rs
|
common_utils
|
impl_block
| null | null | null | 41
| null |
ClientSecretId
| null | 1
| 1
| null | null |
// Implementation: impl api::PaymentToken for for Nexinets
// File: crates/hyperswitch_connectors/src/connectors/nexinets.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Nexinets
|
crates/hyperswitch_connectors/src/connectors/nexinets.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 61
| null |
Nexinets
|
api::PaymentToken for
| 0
| 0
| null | null |
// Implementation: impl std::fmt::Display for for TrustpaymentsErrorCode
// File: crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
// Module: hyperswitch_connectors
// Methods: 1 total (0 public)
impl std::fmt::Display for for TrustpaymentsErrorCode
|
crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 65
| null |
TrustpaymentsErrorCode
|
std::fmt::Display for
| 1
| 0
| null | null |
// Struct: TaxjarErrorResponse
// File: crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct TaxjarErrorResponse
|
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
TaxjarErrorResponse
| 0
|
[] | 48
| null | null | null | null | null | null | null |
// File: crates/diesel_models/src/generic_link.rs
// Module: diesel_models
// Public functions: 2
// Public structs: 7
use common_utils::{
consts,
link_utils::{
EnabledPaymentMethod, GenericLinkStatus, GenericLinkUiConfig, PaymentMethodCollectStatus,
PayoutLinkData, PayoutLinkStatus,
},
};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use masking::Secret;
use serde::{Deserialize, Serialize};
use time::{Duration, PrimitiveDateTime};
use crate::{enums as storage_enums, schema::generic_link};
#[derive(
Clone, Debug, Eq, PartialEq, Identifiable, Queryable, Selectable, Serialize, Deserialize,
)]
#[diesel(table_name = generic_link, primary_key(link_id), check_for_backend(diesel::pg::Pg))]
pub struct GenericLink {
pub link_id: String,
pub primary_reference: String,
pub merchant_id: common_utils::id_type::MerchantId,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub last_modified_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub expiry: PrimitiveDateTime,
pub link_data: serde_json::Value,
pub link_status: GenericLinkStatus,
pub link_type: storage_enums::GenericLinkType,
pub url: Secret<String>,
pub return_url: Option<String>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct GenericLinkState {
pub link_id: String,
pub primary_reference: String,
pub merchant_id: common_utils::id_type::MerchantId,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub last_modified_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub expiry: PrimitiveDateTime,
pub link_data: GenericLinkData,
pub link_status: GenericLinkStatus,
pub link_type: storage_enums::GenericLinkType,
pub url: Secret<String>,
pub return_url: Option<String>,
}
#[derive(
Clone,
Debug,
Eq,
PartialEq,
Insertable,
serde::Serialize,
serde::Deserialize,
router_derive::DebugAsDisplay,
)]
#[diesel(table_name = generic_link)]
pub struct GenericLinkNew {
pub link_id: String,
pub primary_reference: String,
pub merchant_id: common_utils::id_type::MerchantId,
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub created_at: Option<PrimitiveDateTime>,
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub last_modified_at: Option<PrimitiveDateTime>,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub expiry: PrimitiveDateTime,
pub link_data: serde_json::Value,
pub link_status: GenericLinkStatus,
pub link_type: storage_enums::GenericLinkType,
pub url: Secret<String>,
pub return_url: Option<String>,
}
impl Default for GenericLinkNew {
fn default() -> Self {
let now = common_utils::date_time::now();
Self {
link_id: String::default(),
primary_reference: String::default(),
merchant_id: common_utils::id_type::MerchantId::default(),
created_at: Some(now),
last_modified_at: Some(now),
expiry: now + Duration::seconds(consts::DEFAULT_SESSION_EXPIRY),
link_data: serde_json::Value::default(),
link_status: GenericLinkStatus::default(),
link_type: common_enums::GenericLinkType::default(),
url: Secret::default(),
return_url: Option::default(),
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GenericLinkData {
PaymentMethodCollect(PaymentMethodCollectLinkData),
PayoutLink(PayoutLinkData),
}
impl GenericLinkData {
pub fn get_payment_method_collect_data(&self) -> Result<&PaymentMethodCollectLinkData, String> {
match self {
Self::PaymentMethodCollect(pm) => Ok(pm),
_ => Err("Invalid link type for fetching payment method collect data".to_string()),
}
}
pub fn get_payout_link_data(&self) -> Result<&PayoutLinkData, String> {
match self {
Self::PayoutLink(pl) => Ok(pl),
_ => Err("Invalid link type for fetching payout link data".to_string()),
}
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct PaymentMethodCollectLink {
pub link_id: String,
pub primary_reference: String,
pub merchant_id: common_utils::id_type::MerchantId,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub last_modified_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub expiry: PrimitiveDateTime,
pub link_data: PaymentMethodCollectLinkData,
pub link_status: PaymentMethodCollectStatus,
pub link_type: storage_enums::GenericLinkType,
pub url: Secret<String>,
pub return_url: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PaymentMethodCollectLinkData {
pub pm_collect_link_id: String,
pub customer_id: common_utils::id_type::CustomerId,
pub link: Secret<String>,
pub client_secret: Secret<String>,
pub session_expiry: u32,
#[serde(flatten)]
pub ui_config: GenericLinkUiConfig,
pub enabled_payment_methods: Option<Vec<EnabledPaymentMethod>>,
}
#[derive(Clone, Debug, Identifiable, Queryable, Serialize, Deserialize)]
#[diesel(table_name = generic_link)]
#[diesel(primary_key(link_id))]
pub struct PayoutLink {
pub link_id: String,
pub primary_reference: common_utils::id_type::PayoutId,
pub merchant_id: common_utils::id_type::MerchantId,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub last_modified_at: PrimitiveDateTime,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub expiry: PrimitiveDateTime,
pub link_data: PayoutLinkData,
pub link_status: PayoutLinkStatus,
pub link_type: storage_enums::GenericLinkType,
pub url: Secret<String>,
pub return_url: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum PayoutLinkUpdate {
StatusUpdate { link_status: PayoutLinkStatus },
}
#[derive(Clone, Debug, AsChangeset, router_derive::DebugAsDisplay)]
#[diesel(table_name = generic_link)]
pub struct GenericLinkUpdateInternal {
pub link_status: Option<GenericLinkStatus>,
}
impl From<PayoutLinkUpdate> for GenericLinkUpdateInternal {
fn from(generic_link_update: PayoutLinkUpdate) -> Self {
match generic_link_update {
PayoutLinkUpdate::StatusUpdate { link_status } => Self {
link_status: Some(GenericLinkStatus::PayoutLink(link_status)),
},
}
}
}
|
crates/diesel_models/src/generic_link.rs
|
diesel_models
|
full_file
| null | null | null | 1,672
| null | null | null | null | null | null | null |
// Function: get_error_reason
// File: crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
// Module: hyperswitch_connectors
pub fn get_error_reason(
error_info: Option<String>,
detailed_error_info: Option<String>,
avs_error_info: Option<String>,
) -> Option<String>
|
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
|
hyperswitch_connectors
|
function_signature
| null | null | null | 72
|
get_error_reason
| null | null | null | null | null | null |
// Implementation: impl PartialEq for for DisputeMetricsBucketIdentifier
// File: crates/api_models/src/analytics/disputes.rs
// Module: api_models
// Methods: 1 total (0 public)
impl PartialEq for for DisputeMetricsBucketIdentifier
|
crates/api_models/src/analytics/disputes.rs
|
api_models
|
impl_block
| null | null | null | 52
| null |
DisputeMetricsBucketIdentifier
|
PartialEq for
| 1
| 0
| null | null |
// Function: call_multiple_connectors_service
// File: crates/router/src/core/payments.rs
// Module: router
pub fn call_multiple_connectors_service<F, Op, Req, D>(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connectors: api::SessionConnectorDatas,
_operation: &Op,
mut payment_data: D,
customer: &Option<domain::Customer>,
_session_surcharge_details: Option<api::SessionSurchargeDetails>,
business_profile: &domain::Profile,
header_payload: HeaderPayload,
return_raw_connector_response: Option<bool>,
) -> RouterResult<D>
where
Op: Debug,
F: Send + Clone + Sync,
// To create connector flow specific interface data
D: OperationSessionGetters<F> + OperationSessionSetters<F> + Send + Sync + Clone,
D: ConstructFlowSpecificData<F, Req, router_types::PaymentsResponseData>,
RouterData<F, Req, router_types::PaymentsResponseData>: Feature<F, Req>,
// To construct connector flow specific api
dyn api::Connector:
services::api::ConnectorIntegration<F, Req, router_types::PaymentsResponseData>,
|
crates/router/src/core/payments.rs
|
router
|
function_signature
| null | null | null | 257
|
call_multiple_connectors_service
| null | null | null | null | null | null |
// Struct: ApiKeyExpiryTrackingData
// File: crates/diesel_models/src/api_keys.rs
// Module: diesel_models
// Implementations: 0
pub struct ApiKeyExpiryTrackingData
|
crates/diesel_models/src/api_keys.rs
|
diesel_models
|
struct_definition
|
ApiKeyExpiryTrackingData
| 0
|
[] | 43
| null | null | null | null | null | null | null |
// Implementation: impl Capturable for for PaymentsCaptureData
// File: crates/router/src/types.rs
// Module: router
// Methods: 2 total (0 public)
impl Capturable for for PaymentsCaptureData
|
crates/router/src/types.rs
|
router
|
impl_block
| null | null | null | 44
| null |
PaymentsCaptureData
|
Capturable for
| 2
| 0
| null | null |
// Struct: GigadatConnectorMetadataObject
// File: crates/hyperswitch_connectors/src/connectors/gigadat/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct GigadatConnectorMetadataObject
|
crates/hyperswitch_connectors/src/connectors/gigadat/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
GigadatConnectorMetadataObject
| 0
|
[] | 55
| null | null | null | null | null | null | null |
// Struct: CeleroCustomer
// File: crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct CeleroCustomer
|
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
CeleroCustomer
| 0
|
[] | 48
| null | null | null | null | null | null | null |
// Implementation: impl BizEmailProd
// File: crates/router/src/services/email/types.rs
// Module: router
// Methods: 1 total (1 public)
impl BizEmailProd
|
crates/router/src/services/email/types.rs
|
router
|
impl_block
| null | null | null | 38
| null |
BizEmailProd
| null | 1
| 1
| null | null |
// Implementation: impl api::PaymentAuthorizeSessionToken for for Square
// File: crates/hyperswitch_connectors/src/connectors/square.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentAuthorizeSessionToken for for Square
|
crates/hyperswitch_connectors/src/connectors/square.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 59
| null |
Square
|
api::PaymentAuthorizeSessionToken for
| 0
| 0
| null | null |
// Struct: ResponseRouterData
// File: crates/router/src/types.rs
// Module: router
// Implementations: 0
pub struct ResponseRouterData<Flow, R, Request, Response>
|
crates/router/src/types.rs
|
router
|
struct_definition
|
ResponseRouterData
| 0
|
[] | 42
| null | null | null | null | null | null | null |
// Implementation: impl PaymentCapture for for Threedsecureio
// File: crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl PaymentCapture for for Threedsecureio
|
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 59
| null |
Threedsecureio
|
PaymentCapture for
| 0
| 0
| null | null |
// Implementation: impl ValidateStatusForOperation for for ExternalVaultProxyPaymentIntent
// File: crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs
// Module: router
// Methods: 1 total (0 public)
impl ValidateStatusForOperation for for ExternalVaultProxyPaymentIntent
|
crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs
|
router
|
impl_block
| null | null | null | 63
| null |
ExternalVaultProxyPaymentIntent
|
ValidateStatusForOperation for
| 1
| 0
| null | null |
// Struct: RoleInfo
// File: crates/router/src/services/authorization/roles.rs
// Module: router
// Implementations: 1
pub struct RoleInfo
|
crates/router/src/services/authorization/roles.rs
|
router
|
struct_definition
|
RoleInfo
| 1
|
[] | 35
| null | null | null | null | null | null | null |
// Implementation: impl api::PaymentToken for for Breadpay
// File: crates/hyperswitch_connectors/src/connectors/breadpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Breadpay
|
crates/hyperswitch_connectors/src/connectors/breadpay.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 58
| null |
Breadpay
|
api::PaymentToken for
| 0
| 0
| null | null |
// Struct: ThreedsecureioRouterData
// File: crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct ThreedsecureioRouterData<T>
|
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
ThreedsecureioRouterData
| 0
|
[] | 57
| null | null | null | null | null | null | null |
// Struct: VaultFingerprintRequest
// File: crates/router/src/types/payment_methods.rs
// Module: router
// Implementations: 0
pub struct VaultFingerprintRequest
|
crates/router/src/types/payment_methods.rs
|
router
|
struct_definition
|
VaultFingerprintRequest
| 0
|
[] | 37
| null | null | null | null | null | null | null |
// Function: new
// File: crates/hyperswitch_connectors/src/connectors/noon.rs
// Module: hyperswitch_connectors
pub fn new() -> &'static Self
|
crates/hyperswitch_connectors/src/connectors/noon.rs
|
hyperswitch_connectors
|
function_signature
| null | null | null | 38
|
new
| null | null | null | null | null | null |
// Function: convert_from_prost_timestamp
// File: crates/external_services/src/lib.rs
// Module: external_services
// Documentation: Converts a `prost_types::Timestamp` to an `time::PrimitiveDateTime`.
pub fn convert_from_prost_timestamp(
ts: &prost_types::Timestamp,
) -> error_stack::Result<time::PrimitiveDateTime, DateTimeConversionError>
|
crates/external_services/src/lib.rs
|
external_services
|
function_signature
| null | null | null | 81
|
convert_from_prost_timestamp
| null | null | null | null | null | null |
// Implementation: impl api::PaymentVoid for for Flexiti
// File: crates/hyperswitch_connectors/src/connectors/flexiti.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentVoid for for Flexiti
|
crates/hyperswitch_connectors/src/connectors/flexiti.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 58
| null |
Flexiti
|
api::PaymentVoid for
| 0
| 0
| null | null |
// Implementation: impl UserRoleInterface for for KafkaStore
// File: crates/router/src/db/kafka_store.rs
// Module: router
// Methods: 7 total (0 public)
impl UserRoleInterface for for KafkaStore
|
crates/router/src/db/kafka_store.rs
|
router
|
impl_block
| null | null | null | 45
| null |
KafkaStore
|
UserRoleInterface for
| 7
| 0
| null | null |
// Struct: FiuuPaymentSyncRequest
// File: crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct FiuuPaymentSyncRequest
|
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
FiuuPaymentSyncRequest
| 0
|
[] | 54
| null | null | null | null | null | null | null |
// Implementation: impl Iterator for for IntoIter
// File: crates/hyperswitch_constraint_graph/src/dense_map.rs
// Module: hyperswitch_constraint_graph
// Methods: 1 total (0 public)
impl Iterator for for IntoIter
|
crates/hyperswitch_constraint_graph/src/dense_map.rs
|
hyperswitch_constraint_graph
|
impl_block
| null | null | null | 50
| null |
IntoIter
|
Iterator for
| 1
| 0
| null | null |
// Implementation: impl Fiserv
// File: crates/hyperswitch_connectors/src/connectors/fiserv.rs
// Module: hyperswitch_connectors
// Methods: 2 total (2 public)
impl Fiserv
|
crates/hyperswitch_connectors/src/connectors/fiserv.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 48
| null |
Fiserv
| null | 2
| 2
| null | null |
// Function: get_role_from_token_with_groups
// File: crates/router/src/core/user_role/role.rs
// Module: router
pub fn get_role_from_token_with_groups(
state: SessionState,
user_from_token: UserFromToken,
) -> UserResponse<Vec<PermissionGroup>>
|
crates/router/src/core/user_role/role.rs
|
router
|
function_signature
| null | null | null | 61
|
get_role_from_token_with_groups
| null | null | null | null | null | null |
// Implementation: impl FutureUsage
// File: crates/common_enums/src/enums.rs
// Module: common_enums
// Methods: 1 total (1 public)
impl FutureUsage
|
crates/common_enums/src/enums.rs
|
common_enums
|
impl_block
| null | null | null | 39
| null |
FutureUsage
| null | 1
| 1
| null | null |
// Struct: Authenticate
// File: crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct Authenticate
|
crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs
|
hyperswitch_domain_models
|
struct_definition
|
Authenticate
| 0
|
[] | 43
| null | null | null | null | null | null | null |
// Struct: WelcomeToCommunity
// File: crates/router/src/services/email/types.rs
// Module: router
// Implementations: 1
// Traits: EmailData
pub struct WelcomeToCommunity
|
crates/router/src/services/email/types.rs
|
router
|
struct_definition
|
WelcomeToCommunity
| 1
|
[
"EmailData"
] | 41
| null | null | null | null | null | null | null |
// Struct: ProfileCreate
// File: crates/api_models/src/admin.rs
// Module: api_models
// Implementations: 0
pub struct ProfileCreate
|
crates/api_models/src/admin.rs
|
api_models
|
struct_definition
|
ProfileCreate
| 0
|
[] | 33
| null | null | null | null | null | null | null |
// File: crates/router/src/core/mandate/utils.rs
// Module: router
// Public functions: 1
use std::marker::PhantomData;
use common_utils::{errors::CustomResult, ext_traits::ValueExt};
use diesel_models::Mandate;
use error_stack::ResultExt;
use crate::{
core::{errors, payments::helpers},
types::{self, domain, PaymentAddress},
SessionState,
};
const IRRELEVANT_ATTEMPT_ID_IN_MANDATE_REVOKE_FLOW: &str =
"irrelevant_attempt_id_in_mandate_revoke_flow";
const IRRELEVANT_CONNECTOR_REQUEST_REFERENCE_ID_IN_MANDATE_REVOKE_FLOW: &str =
"irrelevant_connector_request_reference_id_in_mandate_revoke_flow";
pub async fn construct_mandate_revoke_router_data(
state: &SessionState,
merchant_connector_account: helpers::MerchantConnectorAccountType,
merchant_context: &domain::MerchantContext,
mandate: Mandate,
) -> CustomResult<types::MandateRevokeRouterData, errors::ApiErrorResponse> {
let auth_type: types::ConnectorAuthType = merchant_connector_account
.get_connector_account_details()
.parse_value("ConnectorAuthType")
.change_context(errors::ApiErrorResponse::InternalServerError)?;
let router_data = types::RouterData {
flow: PhantomData,
merchant_id: merchant_context.get_merchant_account().get_id().clone(),
customer_id: Some(mandate.customer_id),
tenant_id: state.tenant.tenant_id.clone(),
connector_customer: None,
connector: mandate.connector,
payment_id: mandate
.original_payment_id
.unwrap_or_else(|| {
common_utils::id_type::PaymentId::get_irrelevant_id("mandate_revoke")
})
.get_string_repr()
.to_owned(),
attempt_id: IRRELEVANT_ATTEMPT_ID_IN_MANDATE_REVOKE_FLOW.to_string(),
status: diesel_models::enums::AttemptStatus::default(),
payment_method: diesel_models::enums::PaymentMethod::default(),
connector_auth_type: auth_type,
description: None,
address: PaymentAddress::default(),
auth_type: diesel_models::enums::AuthenticationType::default(),
connector_meta_data: None,
connector_wallets_details: None,
amount_captured: None,
minor_amount_captured: None,
access_token: None,
session_token: None,
reference_id: None,
payment_method_token: None,
recurring_mandate_payment_data: None,
preprocessing_id: None,
payment_method_balance: None,
connector_api_version: None,
payment_method_status: None,
request: types::MandateRevokeRequestData {
mandate_id: mandate.mandate_id,
connector_mandate_id: mandate.connector_mandate_id,
},
response: Err(types::ErrorResponse::get_not_implemented()),
connector_request_reference_id:
IRRELEVANT_CONNECTOR_REQUEST_REFERENCE_ID_IN_MANDATE_REVOKE_FLOW.to_string(),
test_mode: None,
connector_http_status_code: None,
external_latency: None,
apple_pay_flow: None,
frm_metadata: None,
#[cfg(feature = "payouts")]
payout_method_data: None,
#[cfg(feature = "payouts")]
quote_id: None,
refund_id: None,
dispute_id: None,
connector_response: None,
integrity_check: Ok(()),
additional_merchant_data: None,
header_payload: None,
connector_mandate_request_reference_id: None,
authentication_id: None,
psd2_sca_exemption_type: None,
raw_connector_response: None,
is_payment_id_from_merchant: None,
l2_l3_data: None,
minor_amount_capturable: None,
};
Ok(router_data)
}
|
crates/router/src/core/mandate/utils.rs
|
router
|
full_file
| null | null | null | 822
| null | null | null | null | null | null | null |
// Struct: TrustlyInfo
// File: crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct TrustlyInfo
|
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
TrustlyInfo
| 0
|
[] | 51
| null | null | null | null | null | null | null |
// Implementation: impl api::PaymentToken for for Hipay
// File: crates/hyperswitch_connectors/src/connectors/hipay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Hipay
|
crates/hyperswitch_connectors/src/connectors/hipay.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 58
| null |
Hipay
|
api::PaymentToken for
| 0
| 0
| null | null |
// File: crates/api_models/src/user/sample_data.rs
// Module: api_models
// Public structs: 1
use common_enums::{AuthenticationType, CountryAlpha2};
use time::PrimitiveDateTime;
use crate::enums::Connector;
#[derive(serde::Deserialize, Debug, serde::Serialize)]
pub struct SampleDataRequest {
pub record: Option<usize>,
pub connector: Option<Vec<Connector>>,
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
pub start_time: Option<PrimitiveDateTime>,
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
pub end_time: Option<PrimitiveDateTime>,
// The amount for each sample will be between min_amount and max_amount (in dollars)
pub min_amount: Option<i64>,
pub max_amount: Option<i64>,
pub currency: Option<Vec<common_enums::Currency>>,
pub auth_type: Option<Vec<AuthenticationType>>,
pub business_country: Option<CountryAlpha2>,
pub business_label: Option<String>,
pub profile_id: Option<common_utils::id_type::ProfileId>,
}
|
crates/api_models/src/user/sample_data.rs
|
api_models
|
full_file
| null | null | null | 250
| null | null | null | null | null | null | null |
// Implementation: impl ConnectorCommon for for Hipay
// File: crates/hyperswitch_connectors/src/connectors/hipay.rs
// Module: hyperswitch_connectors
// Methods: 5 total (0 public)
impl ConnectorCommon for for Hipay
|
crates/hyperswitch_connectors/src/connectors/hipay.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 54
| null |
Hipay
|
ConnectorCommon for
| 5
| 0
| null | null |
// Struct: StripebillingRecordBackResponse
// File: crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct StripebillingRecordBackResponse
|
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
StripebillingRecordBackResponse
| 0
|
[] | 52
| null | null | null | null | null | null | null |
// Function: validate_amount_to_capture
// File: crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
// Module: hyperswitch_domain_models
// Documentation: Validate the amount to capture that is sent in the request
pub fn validate_amount_to_capture(
&self,
request_amount_to_capture: MinorUnit,
) -> Result<(), ValidationError>
|
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
|
hyperswitch_domain_models
|
function_signature
| null | null | null | 75
|
validate_amount_to_capture
| null | null | null | null | null | null |
// Struct: RefundResponse
// File: crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct RefundResponse
|
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
RefundResponse
| 0
|
[] | 48
| null | null | null | null | null | null | null |
// Struct: ExtractedPayload
// File: crates/router/src/services/authentication/detached.rs
// Module: router
// Implementations: 1
pub struct ExtractedPayload
|
crates/router/src/services/authentication/detached.rs
|
router
|
struct_definition
|
ExtractedPayload
| 1
|
[] | 37
| null | null | null | null | null | null | null |
// Function: find_by_global_customer_id_merchant_id_status
// File: crates/diesel_models/src/query/payment_method.rs
// Module: diesel_models
pub fn find_by_global_customer_id_merchant_id_status(
conn: &PgPooledConn,
customer_id: &common_utils::id_type::GlobalCustomerId,
merchant_id: &common_utils::id_type::MerchantId,
status: storage_enums::PaymentMethodStatus,
limit: Option<i64>,
) -> StorageResult<Vec<Self>>
|
crates/diesel_models/src/query/payment_method.rs
|
diesel_models
|
function_signature
| null | null | null | 108
|
find_by_global_customer_id_merchant_id_status
| null | null | null | null | null | null |
// Implementation: impl ConnectorSpecifications for for Sift
// File: crates/hyperswitch_connectors/src/connectors/sift.rs
// Module: hyperswitch_connectors
// Methods: 3 total (0 public)
impl ConnectorSpecifications for for Sift
|
crates/hyperswitch_connectors/src/connectors/sift.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 53
| null |
Sift
|
ConnectorSpecifications for
| 3
| 0
| null | null |
// File: crates/common_utils/src/signals.rs
// Module: common_utils
// Public functions: 6
// Public structs: 1
//! Provide Interface for worker services to handle signals
#[cfg(not(target_os = "windows"))]
use futures::StreamExt;
#[cfg(not(target_os = "windows"))]
use router_env::logger;
use tokio::sync::mpsc;
/// This functions is meant to run in parallel to the application.
/// It will send a signal to the receiver when a SIGTERM or SIGINT is received
#[cfg(not(target_os = "windows"))]
pub async fn signal_handler(mut sig: signal_hook_tokio::Signals, sender: mpsc::Sender<()>) {
if let Some(signal) = sig.next().await {
logger::info!(
"Received signal: {:?}",
signal_hook::low_level::signal_name(signal)
);
match signal {
signal_hook::consts::SIGTERM | signal_hook::consts::SIGINT => match sender.try_send(())
{
Ok(_) => {
logger::info!("Request for force shutdown received")
}
Err(_) => {
logger::error!(
"The receiver is closed, a termination call might already be sent"
)
}
},
_ => {}
}
}
}
/// This functions is meant to run in parallel to the application.
/// It will send a signal to the receiver when a SIGTERM or SIGINT is received
#[cfg(target_os = "windows")]
pub async fn signal_handler(_sig: DummySignal, _sender: mpsc::Sender<()>) {}
/// This function is used to generate a list of signals that the signal_handler should listen for
#[cfg(not(target_os = "windows"))]
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])
}
/// This function is used to generate a list of signals that the signal_handler should listen for
#[cfg(target_os = "windows")]
pub fn get_allowed_signals() -> Result<DummySignal, std::io::Error> {
Ok(DummySignal)
}
/// Dummy Signal Handler for windows
#[cfg(target_os = "windows")]
#[derive(Debug, Clone)]
pub struct DummySignal;
#[cfg(target_os = "windows")]
impl DummySignal {
/// Dummy handler for signals in windows (empty)
pub fn handle(&self) -> Self {
self.clone()
}
/// Hollow implementation, for windows compatibility
pub fn close(self) {}
}
|
crates/common_utils/src/signals.rs
|
common_utils
|
full_file
| null | null | null | 550
| null | null | null | null | null | null | null |
// Struct: GetSubscriptionEstimateRequest
// File: crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct GetSubscriptionEstimateRequest
|
crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs
|
hyperswitch_domain_models
|
struct_definition
|
GetSubscriptionEstimateRequest
| 0
|
[] | 49
| null | null | null | null | null | null | null |
// Implementation: impl api::MandateSetup for for Sift
// File: crates/hyperswitch_connectors/src/connectors/sift.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::MandateSetup for for Sift
|
crates/hyperswitch_connectors/src/connectors/sift.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 61
| null |
Sift
|
api::MandateSetup for
| 0
| 0
| null | null |
// Struct: HeaderPayload
// File: crates/hyperswitch_domain_models/src/payments.rs
// Module: hyperswitch_domain_models
// Implementations: 1
pub struct HeaderPayload
|
crates/hyperswitch_domain_models/src/payments.rs
|
hyperswitch_domain_models
|
struct_definition
|
HeaderPayload
| 1
|
[] | 40
| null | null | null | null | null | null | null |
// Module Structure
// File: crates/hyperswitch_connectors/src/connectors/tesouro.rs
// Module: hyperswitch_connectors
// Public submodules:
pub mod transformers;
|
crates/hyperswitch_connectors/src/connectors/tesouro.rs
|
hyperswitch_connectors
|
module_structure
| null | null | null | 39
| null | null | null | null | null | 1
| 0
|
// Struct: NoonSubscription
// File: crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NoonSubscription
|
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
NoonSubscription
| 0
|
[] | 45
| null | null | null | null | null | null | null |
// Function: error_message
// File: crates/router_derive/src/macros/api_error.rs
// Module: router_derive
pub fn error_message(&self) -> String
|
crates/router_derive/src/macros/api_error.rs
|
router_derive
|
function_signature
| null | null | null | 36
|
error_message
| null | null | null | null | null | null |
// Implementation: impl api::PaymentSync for for Breadpay
// File: crates/hyperswitch_connectors/src/connectors/breadpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentSync for for Breadpay
|
crates/hyperswitch_connectors/src/connectors/breadpay.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 58
| null |
Breadpay
|
api::PaymentSync for
| 0
| 0
| null | null |
// Struct: LinkTokenResponse
// File: crates/pm_auth/src/types.rs
// Module: pm_auth
// Implementations: 0
pub struct LinkTokenResponse
|
crates/pm_auth/src/types.rs
|
pm_auth
|
struct_definition
|
LinkTokenResponse
| 0
|
[] | 35
| null | null | null | null | null | null | null |
// Function: sync_refund_with_gateway
// File: crates/router/src/core/refunds_v2.rs
// Module: router
pub fn sync_refund_with_gateway(
state: &SessionState,
merchant_context: &domain::MerchantContext,
payment_attempt: &storage::PaymentAttempt,
payment_intent: &storage::PaymentIntent,
refund: &diesel_refund::Refund,
) -> errors::RouterResult<diesel_refund::Refund>
|
crates/router/src/core/refunds_v2.rs
|
router
|
function_signature
| null | null | null | 98
|
sync_refund_with_gateway
| null | null | null | null | null | null |
// File: crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
// Module: hyperswitch_connectors
// Public structs: 8
use std::collections::HashMap;
use common_enums::enums;
pub use common_utils::request::Method;
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, id_type, pii::Email, types::FloatMajorUnit,
};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
router_request_types::{PaymentsAuthorizeData, ResponseId},
router_response_types::{PaymentsResponseData, RedirectForm},
types::PaymentsAuthorizeRouterData,
};
use hyperswitch_interfaces::errors;
use masking::Secret;
use serde::{Deserialize, Serialize};
use crate::{
types::ResponseRouterData,
utils::{self, PaymentsAuthorizeRequestData, RouterData as OtherRouterData},
};
#[derive(Default, Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CashtocodePaymentsRequest {
amount: FloatMajorUnit,
transaction_id: String,
user_id: Secret<id_type::CustomerId>,
currency: enums::Currency,
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
user_alias: Secret<id_type::CustomerId>,
requested_url: String,
cancel_url: String,
email: Option<Email>,
mid: Secret<String>,
}
fn get_mid(
connector_auth_type: &ConnectorAuthType,
payment_method_type: Option<enums::PaymentMethodType>,
currency: enums::Currency,
) -> Result<Secret<String>, errors::ConnectorError> {
match CashtocodeAuth::try_from((connector_auth_type, ¤cy)) {
Ok(cashtocode_auth) => match payment_method_type {
Some(enums::PaymentMethodType::ClassicReward) => Ok(cashtocode_auth
.merchant_id_classic
.ok_or(errors::ConnectorError::FailedToObtainAuthType)?),
Some(enums::PaymentMethodType::Evoucher) => Ok(cashtocode_auth
.merchant_id_evoucher
.ok_or(errors::ConnectorError::FailedToObtainAuthType)?),
_ => Err(errors::ConnectorError::FailedToObtainAuthType),
},
Err(_) => Err(errors::ConnectorError::FailedToObtainAuthType)?,
}
}
impl TryFrom<(&PaymentsAuthorizeRouterData, FloatMajorUnit)> for CashtocodePaymentsRequest {
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(
(item, amount): (&PaymentsAuthorizeRouterData, FloatMajorUnit),
) -> Result<Self, Self::Error> {
let customer_id = item.get_customer_id()?;
let url = item.request.get_router_return_url()?;
let mid = get_mid(
&item.connector_auth_type,
item.request.payment_method_type,
item.request.currency,
)?;
match item.payment_method {
enums::PaymentMethod::Reward => Ok(Self {
amount,
transaction_id: item.attempt_id.clone(),
currency: item.request.currency,
user_id: Secret::new(customer_id.to_owned()),
first_name: None,
last_name: None,
user_alias: Secret::new(customer_id),
requested_url: url.to_owned(),
cancel_url: url,
email: item.request.email.clone(),
mid,
}),
_ => Err(errors::ConnectorError::NotImplemented("Payment methods".to_string()).into()),
}
}
}
#[derive(Default, Debug, Deserialize)]
pub struct CashtocodeAuthType {
pub auths: HashMap<enums::Currency, CashtocodeAuth>,
}
#[derive(Default, Debug, Deserialize)]
pub struct CashtocodeAuth {
pub password_classic: Option<Secret<String>>,
pub password_evoucher: Option<Secret<String>>,
pub username_classic: Option<Secret<String>>,
pub username_evoucher: Option<Secret<String>>,
pub merchant_id_classic: Option<Secret<String>>,
pub merchant_id_evoucher: Option<Secret<String>>,
}
impl TryFrom<&ConnectorAuthType> for CashtocodeAuthType {
type Error = error_stack::Report<errors::ConnectorError>; // Assuming ErrorStack is the appropriate error type
fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {
match auth_type {
ConnectorAuthType::CurrencyAuthKey { auth_key_map } => {
let transformed_auths = auth_key_map
.iter()
.map(|(currency, identity_auth_key)| {
let cashtocode_auth = identity_auth_key
.to_owned()
.parse_value::<CashtocodeAuth>("CashtocodeAuth")
.change_context(errors::ConnectorError::InvalidDataFormat {
field_name: "auth_key_map",
})?;
Ok((currency.to_owned(), cashtocode_auth))
})
.collect::<Result<_, Self::Error>>()?;
Ok(Self {
auths: transformed_auths,
})
}
_ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),
}
}
}
impl TryFrom<(&ConnectorAuthType, &enums::Currency)> for CashtocodeAuth {
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(value: (&ConnectorAuthType, &enums::Currency)) -> Result<Self, Self::Error> {
let (auth_type, currency) = value;
if let ConnectorAuthType::CurrencyAuthKey { auth_key_map } = auth_type {
if let Some(identity_auth_key) = auth_key_map.get(currency) {
let cashtocode_auth: Self = identity_auth_key
.to_owned()
.parse_value("CashtocodeAuth")
.change_context(errors::ConnectorError::FailedToObtainAuthType)?;
Ok(cashtocode_auth)
} else {
Err(errors::ConnectorError::CurrencyNotSupported {
message: currency.to_string(),
connector: "CashToCode",
}
.into())
}
} else {
Err(errors::ConnectorError::FailedToObtainAuthType.into())
}
}
}
#[derive(Debug, Default, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum CashtocodePaymentStatus {
Succeeded,
#[default]
Processing,
}
impl From<CashtocodePaymentStatus> for enums::AttemptStatus {
fn from(item: CashtocodePaymentStatus) -> Self {
match item {
CashtocodePaymentStatus::Succeeded => Self::Charged,
CashtocodePaymentStatus::Processing => Self::AuthenticationPending,
}
}
}
#[derive(Debug, Deserialize, Clone, Serialize)]
pub struct CashtocodeErrors {
pub message: String,
pub path: String,
#[serde(rename = "type")]
pub event_type: String,
}
#[derive(Debug, Deserialize, Serialize)]
#[serde(untagged)]
pub enum CashtocodePaymentsResponse {
CashtoCodeError(CashtocodeErrorResponse),
CashtoCodeData(CashtocodePaymentsResponseData),
}
#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CashtocodePaymentsResponseData {
pub pay_url: url::Url,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CashtocodePaymentsSyncResponse {
pub transaction_id: String,
pub amount: FloatMajorUnit,
}
fn get_redirect_form_data(
payment_method_type: enums::PaymentMethodType,
response_data: CashtocodePaymentsResponseData,
) -> CustomResult<RedirectForm, errors::ConnectorError> {
match payment_method_type {
enums::PaymentMethodType::ClassicReward => Ok(RedirectForm::Form {
//redirect form is manually constructed because the connector for this pm type expects query params in the url
endpoint: response_data.pay_url.to_string(),
method: Method::Post,
form_fields: Default::default(),
}),
enums::PaymentMethodType::Evoucher => Ok(RedirectForm::from((
//here the pay url gets parsed, and query params are sent as formfields as the connector expects
response_data.pay_url,
Method::Get,
))),
_ => Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("CashToCode"),
))?,
}
}
impl<F>
TryFrom<
ResponseRouterData<
F,
CashtocodePaymentsResponse,
PaymentsAuthorizeData,
PaymentsResponseData,
>,
> for RouterData<F, PaymentsAuthorizeData, PaymentsResponseData>
{
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(
item: ResponseRouterData<
F,
CashtocodePaymentsResponse,
PaymentsAuthorizeData,
PaymentsResponseData,
>,
) -> Result<Self, Self::Error> {
let (status, response) = match item.response {
CashtocodePaymentsResponse::CashtoCodeError(error_data) => (
enums::AttemptStatus::Failure,
Err(ErrorResponse {
code: error_data.error.to_string(),
status_code: item.http_code,
message: error_data.error_description.clone(),
reason: Some(error_data.error_description),
attempt_status: None,
connector_transaction_id: None,
network_advice_code: None,
network_decline_code: None,
network_error_message: None,
connector_metadata: None,
}),
),
CashtocodePaymentsResponse::CashtoCodeData(response_data) => {
let payment_method_type = item
.data
.request
.payment_method_type
.ok_or(errors::ConnectorError::MissingPaymentMethodType)?;
let redirection_data = get_redirect_form_data(payment_method_type, response_data)?;
(
enums::AttemptStatus::AuthenticationPending,
Ok(PaymentsResponseData::TransactionResponse {
resource_id: ResponseId::ConnectorTransactionId(
item.data.attempt_id.clone(),
),
redirection_data: Box::new(Some(redirection_data)),
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charges: None,
}),
)
}
};
Ok(Self {
status,
response,
..item.data
})
}
}
impl<F, T> TryFrom<ResponseRouterData<F, CashtocodePaymentsSyncResponse, T, PaymentsResponseData>>
for RouterData<F, T, PaymentsResponseData>
{
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(
item: ResponseRouterData<F, CashtocodePaymentsSyncResponse, T, PaymentsResponseData>,
) -> Result<Self, Self::Error> {
Ok(Self {
status: enums::AttemptStatus::Charged, // Charged status is hardcoded because cashtocode do not support Psync, and we only receive webhooks when payment is succeeded, this tryFrom is used for CallConnectorAction.
response: Ok(PaymentsResponseData::TransactionResponse {
resource_id: ResponseId::ConnectorTransactionId(
item.data.attempt_id.clone(), //in response they only send PayUrl, so we use attempt_id as connector_transaction_id
),
redirection_data: Box::new(None),
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charges: None,
}),
..item.data
})
}
}
#[derive(Debug, Deserialize, Serialize)]
pub struct CashtocodeErrorResponse {
pub error: serde_json::Value,
pub error_description: String,
pub errors: Option<Vec<CashtocodeErrors>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CashtocodeIncomingWebhook {
pub amount: FloatMajorUnit,
pub currency: String,
pub foreign_transaction_id: String,
#[serde(rename = "type")]
pub event_type: String,
pub transaction_id: String,
}
|
crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
|
hyperswitch_connectors
|
full_file
| null | null | null | 2,600
| null | null | null | null | null | null | null |
// Implementation: impl Default for for SuccessBasedRoutingConfig
// File: crates/api_models/src/routing.rs
// Module: api_models
// Methods: 1 total (0 public)
impl Default for for SuccessBasedRoutingConfig
|
crates/api_models/src/routing.rs
|
api_models
|
impl_block
| null | null | null | 47
| null |
SuccessBasedRoutingConfig
|
Default for
| 1
| 0
| null | null |
// Struct: CashtoCodeCurrencyAuthKeyType
// File: crates/connector_configs/src/connector.rs
// Module: connector_configs
// Implementations: 0
pub struct CashtoCodeCurrencyAuthKeyType
|
crates/connector_configs/src/connector.rs
|
connector_configs
|
struct_definition
|
CashtoCodeCurrencyAuthKeyType
| 0
|
[] | 45
| null | null | null | null | null | null | null |
// Function: list_by_profile_id_initial_attempt_id
// File: crates/diesel_models/src/query/events.rs
// Module: diesel_models
pub fn list_by_profile_id_initial_attempt_id(
conn: &PgPooledConn,
profile_id: &common_utils::id_type::ProfileId,
initial_attempt_id: &str,
) -> StorageResult<Vec<Self>>
|
crates/diesel_models/src/query/events.rs
|
diesel_models
|
function_signature
| null | null | null | 78
|
list_by_profile_id_initial_attempt_id
| null | null | null | null | null | null |
// Function: retrieve_dispute
// File: crates/router/src/routes/disputes.rs
// Module: router
pub fn retrieve_dispute(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
json_payload: web::Query<dispute_models::DisputeRetrieveBody>,
) -> HttpResponse
|
crates/router/src/routes/disputes.rs
|
router
|
function_signature
| null | null | null | 72
|
retrieve_dispute
| null | null | null | null | null | null |
// Struct: VirInterpreterBackend
// File: crates/euclid/src/backend/vir_interpreter.rs
// Module: euclid
// Implementations: 1
pub struct VirInterpreterBackend<O>
|
crates/euclid/src/backend/vir_interpreter.rs
|
euclid
|
struct_definition
|
VirInterpreterBackend
| 1
|
[] | 42
| null | null | null | null | null | null | null |
// Function: fetch_payment_method
// File: crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
// Module: router
pub fn fetch_payment_method(
&self,
payment_method_id: &str,
) -> RouterResult<domain::PaymentMethod>
|
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
|
router
|
function_signature
| null | null | null | 57
|
fetch_payment_method
| null | null | null | null | null | null |
// Function: perform_session_token_routing
// File: crates/router/src/core/payments.rs
// Module: router
pub fn perform_session_token_routing<F, D>(
state: SessionState,
business_profile: &domain::Profile,
merchant_context: domain::MerchantContext,
payment_data: &D,
connectors: api::SessionConnectorDatas,
) -> RouterResult<SessionTokenRoutingResult>
where
F: Clone,
D: OperationSessionGetters<F>,
|
crates/router/src/core/payments.rs
|
router
|
function_signature
| null | null | null | 100
|
perform_session_token_routing
| null | null | null | null | null | null |
// Implementation: impl DBOperation
// File: crates/diesel_models/src/kv.rs
// Module: diesel_models
// Methods: 1 total (0 public)
impl DBOperation
|
crates/diesel_models/src/kv.rs
|
diesel_models
|
impl_block
| null | null | null | 40
| null |
DBOperation
| null | 1
| 0
| null | null |
// Implementation: impl api::PaymentCapture for for Itaubank
// File: crates/hyperswitch_connectors/src/connectors/itaubank.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentCapture for for Itaubank
|
crates/hyperswitch_connectors/src/connectors/itaubank.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 61
| null |
Itaubank
|
api::PaymentCapture for
| 0
| 0
| null | null |
// Function: check_payments_receivable
// File: crates/router/src/types/api/connector_onboarding/paypal.rs
// Module: router
pub fn check_payments_receivable(&self) -> Option<api::PayPalOnboardingStatus>
|
crates/router/src/types/api/connector_onboarding/paypal.rs
|
router
|
function_signature
| null | null | null | 51
|
check_payments_receivable
| null | null | null | null | null | null |
// Function: is_separate_authentication_supported
// File: crates/common_enums/src/connector_enums.rs
// Module: common_enums
pub fn is_separate_authentication_supported(self) -> bool
|
crates/common_enums/src/connector_enums.rs
|
common_enums
|
function_signature
| null | null | null | 41
|
is_separate_authentication_supported
| null | null | null | null | null | null |
// Function: percentage
// File: crates/euclid/src/frontend/ast/parser.rs
// Module: euclid
pub fn percentage(input: &str) -> ParseResult<&str, u8>
|
crates/euclid/src/frontend/ast/parser.rs
|
euclid
|
function_signature
| null | null | null | 42
|
percentage
| null | null | null | null | null | null |
// Implementation: impl DashboardMetadataInterface for for KafkaStore
// File: crates/router/src/db/kafka_store.rs
// Module: router
// Methods: 6 total (0 public)
impl DashboardMetadataInterface for for KafkaStore
|
crates/router/src/db/kafka_store.rs
|
router
|
impl_block
| null | null | null | 47
| null |
KafkaStore
|
DashboardMetadataInterface for
| 6
| 0
| null | null |
// Function: get_string_repr
// File: crates/common_utils/src/id_type/global_id/payment_methods.rs
// Module: common_utils
// Documentation: Get the string representation of the id
pub fn get_string_repr(&self) -> &str
|
crates/common_utils/src/id_type/global_id/payment_methods.rs
|
common_utils
|
function_signature
| null | null | null | 50
|
get_string_repr
| null | null | null | null | null | null |
// Function: set_dynamic_routing_volume_split
// File: crates/router/src/routes/routing.rs
// Module: router
pub fn set_dynamic_routing_volume_split(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<api_models::routing::DynamicRoutingVolumeSplitQuery>,
path: web::Path<routing_types::ToggleDynamicRoutingPath>,
) -> impl Responder
|
crates/router/src/routes/routing.rs
|
router
|
function_signature
| null | null | null | 85
|
set_dynamic_routing_volume_split
| null | null | null | null | null | null |
// Implementation: impl api::Refund for for Juspaythreedsserver
// File: crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::Refund for for Juspaythreedsserver
|
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 72
| null |
Juspaythreedsserver
|
api::Refund for
| 0
| 0
| null | null |
// Implementation: impl OrganizationBridge for for OrganizationNew
// File: crates/diesel_models/src/organization.rs
// Module: diesel_models
// Methods: 3 total (0 public)
impl OrganizationBridge for for OrganizationNew
|
crates/diesel_models/src/organization.rs
|
diesel_models
|
impl_block
| null | null | null | 46
| null |
OrganizationNew
|
OrganizationBridge for
| 3
| 0
| null | null |
// Struct: CardCancelResponse
// File: crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct CardCancelResponse
|
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
CardCancelResponse
| 0
|
[] | 48
| null | null | null | null | null | null | null |
// Struct: VaultRequestData
// File: crates/hyperswitch_domain_models/src/router_request_types.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct VaultRequestData
|
crates/hyperswitch_domain_models/src/router_request_types.rs
|
hyperswitch_domain_models
|
struct_definition
|
VaultRequestData
| 0
|
[] | 43
| null | null | null | null | null | null | null |
// Implementation: impl api::ConnectorAccessToken for for Trustpay
// File: crates/hyperswitch_connectors/src/connectors/trustpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::ConnectorAccessToken for for Trustpay
|
crates/hyperswitch_connectors/src/connectors/trustpay.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 58
| null |
Trustpay
|
api::ConnectorAccessToken for
| 0
| 0
| null | null |
storage_model.surcharge_amount,
storage_model.tax_amount,
),
payment_id: storage_model.payment_id,
merchant_id: storage_model.merchant_id.clone(),
attempt_id: storage_model.attempt_id,
status: storage_model.status,
currency: storage_model.currency,
save_to_locker: storage_model.save_to_locker,
connector: storage_model.connector,
error_message: storage_model.error_message,
offer_amount: storage_model.offer_amount,
payment_method_id: storage_model.payment_method_id,
payment_method: storage_model.payment_method,
capture_method: storage_model.capture_method,
capture_on: storage_model.capture_on,
confirm: storage_model.confirm,
authentication_type: storage_model.authentication_type,
created_at: Some(storage_model.created_at),
modified_at: Some(storage_model.modified_at),
last_synced: storage_model.last_synced,
cancellation_reason: storage_model.cancellation_reason,
amount_to_capture: storage_model.amount_to_capture,
mandate_id: storage_model.mandate_id,
browser_info: storage_model.browser_info,
payment_token: storage_model.payment_token,
error_code: storage_model.error_code,
connector_metadata: storage_model.connector_metadata,
payment_experience: storage_model.payment_experience,
payment_method_type: storage_model.payment_method_type,
payment_method_data: storage_model.payment_method_data,
business_sub_label: storage_model.business_sub_label,
straight_through_algorithm: storage_model.straight_through_algorithm,
preprocessing_step_id: storage_model.preprocessing_step_id,
mandate_details: storage_model
.mandate_details
.map(MandateDataType::from_storage_model),
error_reason: storage_model.error_reason,
connector_response_reference_id: storage_model.connector_response_reference_id,
multiple_capture_count: storage_model.multiple_capture_count,
amount_capturable: storage_model.amount_capturable,
updated_by: storage_model.updated_by,
authentication_data: storage_model.authentication_data,
encoded_data: storage_model.encoded_data,
merchant_connector_id: storage_model.merchant_connector_id,
unified_code: storage_model.unified_code,
unified_message: storage_model.unified_message,
external_three_ds_authentication_attempted: storage_model
.external_three_ds_authentication_attempted,
authentication_connector: storage_model.authentication_connector,
authentication_id: storage_model.authentication_id,
mandate_data: storage_model
.mandate_data
.map(MandateDetails::from_storage_model),
payment_method_billing_address_id: storage_model.payment_method_billing_address_id,
fingerprint_id: storage_model.fingerprint_id,
client_source: storage_model.client_source,
client_version: storage_model.client_version,
customer_acceptance: storage_model.customer_acceptance,
organization_id: storage_model.organization_id,
profile_id: storage_model.profile_id,
connector_mandate_detail: storage_model.connector_mandate_detail,
request_extended_authorization: storage_model.request_extended_authorization,
extended_authorization_applied: storage_model.extended_authorization_applied,
capture_before: storage_model.capture_before,
card_discovery: storage_model.card_discovery,
processor_merchant_id: storage_model
.processor_merchant_id
.unwrap_or(storage_model.merchant_id),
created_by: storage_model
.created_by
.and_then(|created_by| created_by.parse::<CreatedBy>().ok()),
setup_future_usage_applied: storage_model.setup_future_usage_applied,
routing_approach: storage_model.routing_approach,
connector_request_reference_id: storage_model.connector_request_reference_id,
network_transaction_id: storage_model.network_transaction_id,
network_details: storage_model.network_details,
is_stored_credential: storage_model.is_stored_credential,
}
}
}
#[inline]
#[instrument(skip_all)]
async fn add_connector_txn_id_to_reverse_lookup<T: DatabaseStore>(
store: &KVRouterStore<T>,
key: &str,
merchant_id: &common_utils::id_type::MerchantId,
updated_attempt_attempt_id: &str,
connector_transaction_id: &str,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<ReverseLookup, errors::StorageError> {
let field = format!("pa_{updated_attempt_attempt_id}");
let reverse_lookup_new = ReverseLookupNew {
lookup_id: format!(
"pa_conn_trans_{}_{}",
merchant_id.get_string_repr(),
connector_transaction_id
),
pk_id: key.to_owned(),
sk_id: field.clone(),
source: "payment_attempt".to_string(),
updated_by: storage_scheme.to_string(),
};
store
.insert_reverse_lookup(reverse_lookup_new, storage_scheme)
.await
}
#[inline]
#[instrument(skip_all)]
async fn add_preprocessing_id_to_reverse_lookup<T: DatabaseStore>(
store: &KVRouterStore<T>,
key: &str,
merchant_id: &common_utils::id_type::MerchantId,
updated_attempt_attempt_id: &str,
preprocessing_id: &str,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<ReverseLookup, errors::StorageError> {
let field = format!("pa_{updated_attempt_attempt_id}");
let reverse_lookup_new = ReverseLookupNew {
lookup_id: format!(
"pa_preprocessing_{}_{}",
merchant_id.get_string_repr(),
preprocessing_id
),
pk_id: key.to_owned(),
sk_id: field.clone(),
source: "payment_attempt".to_string(),
updated_by: storage_scheme.to_string(),
};
store
.insert_reverse_lookup(reverse_lookup_new, storage_scheme)
.await
}
#[cfg(feature = "v2")]
mod label {
pub(super) const MODEL_NAME: &str = "payment_attempt_v2";
pub(super) const CLUSTER_LABEL: &str = "pa";
pub(super) fn get_profile_id_connector_transaction_label(
profile_id: &str,
connector_transaction_id: &str,
) -> String {
format!("profile_{profile_id}_conn_txn_{connector_transaction_id}")
}
pub(super) fn get_global_id_label(
attempt_id: &common_utils::id_type::GlobalAttemptId,
) -> String {
format!("attempt_global_id_{}", attempt_id.get_string_repr())
}
}
|
crates/storage_impl/src/payments/payment_attempt.rs#chunk2
|
storage_impl
|
chunk
| null | null | null | 1,319
| null | null | null | null | null | null | null |
// Struct: ProfileGeneralUpdate
// File: crates/hyperswitch_domain_models/src/business_profile.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct ProfileGeneralUpdate
|
crates/hyperswitch_domain_models/src/business_profile.rs
|
hyperswitch_domain_models
|
struct_definition
|
ProfileGeneralUpdate
| 0
|
[] | 42
| null | null | null | null | null | null | null |
// Implementation: impl common_utils::events::ApiEventMetric
for for PaymentsGenericRequestWithResourceId
// File: crates/router/src/routes/payments.rs
// Module: router
// Methods: 1 total (0 public)
impl common_utils::events::ApiEventMetric
for for PaymentsGenericRequestWithResourceId
|
crates/router/src/routes/payments.rs
|
router
|
impl_block
| null | null | null | 66
| null |
PaymentsGenericRequestWithResourceId
|
common_utils::events::ApiEventMetric
for
| 1
| 0
| null | null |
// Struct: Mollie
// File: crates/hyperswitch_connectors/src/connectors/mollie.rs
// Module: hyperswitch_connectors
// Implementations: 20
// Traits: api::Payment, api::PaymentSession, api::ConnectorAccessToken, api::MandateSetup, api::PaymentToken, api::PaymentAuthorize, api::PaymentsCompleteAuthorize, api::PaymentSync, api::PaymentCapture, api::PaymentVoid, api::Refund, api::RefundExecute, api::RefundSync, ConnectorCommon, ConnectorValidation, webhooks::IncomingWebhook, ConnectorRedirectResponse, ConnectorSpecifications, ConnectorSpecifications
pub struct Mollie
|
crates/hyperswitch_connectors/src/connectors/mollie.rs
|
hyperswitch_connectors
|
struct_definition
|
Mollie
| 20
|
[
"api::Payment",
"api::PaymentSession",
"api::ConnectorAccessToken",
"api::MandateSetup",
"api::PaymentToken",
"api::PaymentAuthorize",
"api::PaymentsCompleteAuthorize",
"api::PaymentSync",
"api::PaymentCapture",
"api::PaymentVoid",
"api::Refund",
"api::RefundExecute",
"api::RefundSync",
"ConnectorCommon",
"ConnectorValidation",
"webhooks::IncomingWebhook",
"ConnectorRedirectResponse",
"ConnectorSpecifications",
"ConnectorSpecifications"
] | 141
| null | null | null | null | null | null | null |
// Implementation: impl ConnectorCommon for for Forte
// File: crates/hyperswitch_connectors/src/connectors/forte.rs
// Module: hyperswitch_connectors
// Methods: 5 total (0 public)
impl ConnectorCommon for for Forte
|
crates/hyperswitch_connectors/src/connectors/forte.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 54
| null |
Forte
|
ConnectorCommon for
| 5
| 0
| null | null |
// Function: list_initial_webhook_delivery_attempts_with_jwtauth
// File: crates/router/src/routes/webhook_events.rs
// Module: router
pub fn list_initial_webhook_delivery_attempts_with_jwtauth(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<EventListConstraints>,
) -> impl Responder
|
crates/router/src/routes/webhook_events.rs
|
router
|
function_signature
| null | null | null | 76
|
list_initial_webhook_delivery_attempts_with_jwtauth
| null | null | null | null | null | null |
// Function: refunds_retrieve_with_body
// File: crates/router/src/routes/refunds.rs
// Module: router
pub fn refunds_retrieve_with_body(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<refunds::RefundsRetrieveRequest>,
) -> HttpResponse
|
crates/router/src/routes/refunds.rs
|
router
|
function_signature
| null | null | null | 66
|
refunds_retrieve_with_body
| null | null | null | null | null | null |
// Implementation: impl ProphetpayTokenType
// File: crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
// Module: hyperswitch_connectors
// Methods: 1 total (0 public)
impl ProphetpayTokenType
|
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 51
| null |
ProphetpayTokenType
| null | 1
| 0
| null | null |
// Implementation: impl PartnerReferralRequest
// File: crates/router/src/types/api/connector_onboarding/paypal.rs
// Module: router
// Methods: 1 total (1 public)
impl PartnerReferralRequest
|
crates/router/src/types/api/connector_onboarding/paypal.rs
|
router
|
impl_block
| null | null | null | 45
| null |
PartnerReferralRequest
| null | 1
| 1
| null | null |
// Struct: NovalnetAuthorizationResponse
// File: crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NovalnetAuthorizationResponse
|
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
NovalnetAuthorizationResponse
| 0
|
[] | 52
| null | null | null | null | null | null | null |
// Implementation: impl RefundSync for for Signifyd
// File: crates/hyperswitch_connectors/src/connectors/signifyd.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl RefundSync for for Signifyd
|
crates/hyperswitch_connectors/src/connectors/signifyd.rs
|
hyperswitch_connectors
|
impl_block
| null | null | null | 58
| null |
Signifyd
|
RefundSync for
| 0
| 0
| null | null |
// Implementation: impl FromEncoded for for Secret
// File: crates/external_services/src/hashicorp_vault/core.rs
// Module: external_services
// Methods: 1 total (0 public)
impl FromEncoded for for Secret
|
crates/external_services/src/hashicorp_vault/core.rs
|
external_services
|
impl_block
| null | null | null | 48
| null |
Secret
|
FromEncoded for
| 1
| 0
| null | null |
// Trait: FromEncoded
// File: crates/external_services/src/hashicorp_vault/core.rs
// Module: external_services
// Documentation: A trait for types that can be constructed from encoded data in the form of a String.
pub trait FromEncoded: Sized
|
crates/external_services/src/hashicorp_vault/core.rs
|
external_services
|
trait_definition
| null | null | null | 55
| null | null |
FromEncoded
| null | null | null | null |
// Struct: AdyenStoredCardIdentification
// File: crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct AdyenStoredCardIdentification
|
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
|
hyperswitch_connectors
|
struct_definition
|
AdyenStoredCardIdentification
| 0
|
[] | 56
| null | null | null | null | null | null | null |
// Function: get_schedule_time_based_on_retry_type
// File: crates/router/src/types/storage/revenue_recovery.rs
// Module: router
pub fn get_schedule_time_based_on_retry_type(
&self,
state: &SessionState,
merchant_id: &id_type::MerchantId,
retry_count: i32,
payment_attempt: &PaymentAttempt,
payment_intent: &PaymentIntent,
is_hard_decline: bool,
) -> Option<time::PrimitiveDateTime>
|
crates/router/src/types/storage/revenue_recovery.rs
|
router
|
function_signature
| null | null | null | 103
|
get_schedule_time_based_on_retry_type
| null | null | null | null | null | null |
// Struct: ThreeD
// File: crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct ThreeD
|
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
|
hyperswitch_connectors
|
struct_definition
|
ThreeD
| 0
|
[] | 47
| null | null | null | null | null | null | null |
// Function: new_normal
// File: crates/masking/src/maskable.rs
// Module: masking
// Documentation: Create a new non-masked data
pub fn new_normal(item: T) -> Self
|
crates/masking/src/maskable.rs
|
masking
|
function_signature
| null | null | null | 44
|
new_normal
| 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.