id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
hyperswitch_enum_external_services_114910742421456999
clm
enum
// hyperswitch/crates/external_services/src/managers/encryption_management.rs pub enum EncryptionManagementConfig { /// AWS KMS configuration #[cfg(feature = "aws_kms")] AwsKms { /// AWS KMS config aws_kms: aws_kms::core::AwsKmsConfig, }, /// Variant representing no encryption #[default] NoEncryption, }
{ "chunk": null, "crate": "external_services", "enum_name": "EncryptionManagementConfig", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_4652892285500742414
clm
enum
// hyperswitch/crates/external_services/src/aws_kms/core.rs pub enum AwsKmsError { /// An error occurred when base64 encoding input data. #[error("Failed to base64 encode input data")] Base64EncodingFailed, /// An error occurred when base64 decoding input data. #[error("Failed to base64 decode input data")] Base64DecodingFailed, /// An error occurred when AWS KMS decrypting input data. #[error("Failed to AWS KMS decrypt input data")] DecryptionFailed, /// An error occurred when AWS KMS encrypting input data. #[error("Failed to AWS KMS encrypt input data")] EncryptionFailed, /// The AWS KMS decrypted output does not include a plaintext output. #[error("Missing plaintext AWS KMS decryption output")] MissingPlaintextDecryptionOutput, /// The AWS KMS encrypted output does not include a ciphertext output. #[error("Missing ciphertext AWS KMS encryption output")] MissingCiphertextEncryptionOutput, /// An error occurred UTF-8 decoding AWS KMS decrypted output. #[error("Failed to UTF-8 decode decryption output")] Utf8DecodingFailed, /// The AWS KMS client has not been initialized. #[error("The AWS KMS client has not been initialized")] AwsKmsClientNotInitialized, }
{ "chunk": null, "crate": "external_services", "enum_name": "AwsKmsError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_4682071832728978497
clm
enum
// hyperswitch/crates/external_services/src/superposition/types.rs pub enum SuperpositionError { /// Error initializing the Superposition client #[error("Failed to initialize Superposition client: {0}")] ClientInitError(String), /// Error from the Superposition client #[error("Superposition client error: {0}")] ClientError(String), /// Invalid configuration provided #[error("Invalid configuration: {0}")] InvalidConfiguration(String), }
{ "chunk": null, "crate": "external_services", "enum_name": "SuperpositionError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_2987279379187669084
clm
enum
// hyperswitch/crates/external_services/src/grpc_client/health_check_client.rs pub enum HealthCheckError { /// The required input is missing #[error("Missing fields: {0} for building the Health check connection")] MissingFields(String), /// Error from gRPC Server #[error("Error from gRPC Server : {0}")] ConnectionError(String), /// status is invalid #[error("Invalid Status from server")] InvalidStatus, }
{ "chunk": null, "crate": "external_services", "enum_name": "HealthCheckError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_-1768416350663103766
clm
enum
// hyperswitch/crates/external_services/src/grpc_client/unified_connector_service.rs pub enum ExternalVaultProxyMetadata { /// VGS proxy data variant VgsMetadata(VgsMetadata), }
{ "chunk": null, "crate": "external_services", "enum_name": "ExternalVaultProxyMetadata", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_261341239052468795
clm
enum
// hyperswitch/crates/external_services/src/grpc_client/dynamic_routing.rs pub enum DynamicRoutingError { /// The required input is missing #[error("Missing Required Field : {field} for building the Dynamic Routing Request")] MissingRequiredField { /// The required field name field: String, }, /// Error from Dynamic Routing Server while performing success_rate analysis #[error("Error from Dynamic Routing Server while perfrming success_rate analysis : {0}")] SuccessRateBasedRoutingFailure(String), /// Generic Error from Dynamic Routing Server while performing contract based routing #[error("Error from Dynamic Routing Server while performing contract based routing: {0}")] ContractBasedRoutingFailure(String), /// Generic Error from Dynamic Routing Server while performing contract based routing #[error("Contract not found in the dynamic routing service")] ContractNotFound, /// Error from Dynamic Routing Server while perfrming elimination #[error("Error from Dynamic Routing Server while perfrming elimination : {0}")] EliminationRateRoutingFailure(String), }
{ "chunk": null, "crate": "external_services", "enum_name": "DynamicRoutingError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_-3399856059797164484
clm
enum
// hyperswitch/crates/external_services/src/grpc_client/dynamic_routing.rs pub enum DynamicRoutingClientConfig { /// If the dynamic routing client config has been enabled Enabled { /// The host for the client host: String, /// The port of the client port: u16, /// Service name service: String, }, #[default] /// If the dynamic routing client config has been disabled Disabled, }
{ "chunk": null, "crate": "external_services", "enum_name": "DynamicRoutingClientConfig", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_637324798925593183
clm
enum
// hyperswitch/crates/external_services/src/grpc_client/revenue_recovery/recovery_decider_client.rs pub enum RecoveryDeciderError { /// Error establishing gRPC connection #[error("Failed to establish connection with Recovery Decider service: {0}")] ConnectionError(String), /// Error received from the gRPC service #[error("Recovery Decider service returned an error: {0}")] ServiceError(String), /// Missing configuration for the client #[error("Recovery Decider client configuration is missing or invalid")] ConfigError(String), }
{ "chunk": null, "crate": "external_services", "enum_name": "RecoveryDeciderError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_-3271760849704070602
clm
enum
// hyperswitch/crates/external_services/src/email/ses.rs pub enum AwsSesError { /// An error occurred in the SDK while sending email. #[error("Failed to Send Email {0:?}")] SendingFailure(Box<aws_sdk_sesv2::error::SdkError<SendEmailError>>), /// Configuration variable is missing to construct the email client #[error("Missing configuration variable {0}")] MissingConfigurationVariable(&'static str), /// Failed to assume the given STS role #[error("Failed to STS assume role: Role ARN: {role_arn}, Session name: {session_name}, Region: {region}")] AssumeRoleFailure { /// Aws region region: String, /// arn of email role role_arn: String, /// The name of sts_session role session_name: String, }, /// Temporary credentials are missing #[error("Assumed role does not contain credentials for role user: {0:?}")] TemporaryCredentialsMissing(String), /// The proxy Connector cannot be built #[error("The proxy build cannot be built")] BuildingProxyConnectorFailed, }
{ "chunk": null, "crate": "external_services", "enum_name": "AwsSesError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_7569100901671966605
clm
enum
// hyperswitch/crates/external_services/src/email/smtp.rs pub enum SmtpConnection { #[default] /// Plaintext connection which MUST then successfully upgrade to TLS via STARTTLS StartTls, /// Plaintext connection (very insecure) Plaintext, }
{ "chunk": null, "crate": "external_services", "enum_name": "SmtpConnection", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_external_services_2309907696813542420
clm
enum
// hyperswitch/crates/external_services/src/email/smtp.rs pub enum SmtpError { /// An error occurred in the SMTP while sending email. #[error("Failed to Send Email {0:?}")] SendingFailure(smtp::Error), /// An error occurred in the SMTP while building the message content. #[error("Failed to create connection {0:?}")] ConnectionFailure(smtp::Error), /// An error occurred in the SMTP while building the message content. #[error("Failed to Build Email content {0:?}")] MessageBuildingFailed(error::Error), /// An error occurred in the SMTP while building the message content. #[error("Failed to parse given email {0:?}")] EmailParsingFailed(AddressError), }
{ "chunk": null, "crate": "external_services", "enum_name": "SmtpError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_euclid_macros_-6441350888823663390
clm
enum
// hyperswitch/crates/euclid_macros/src/inner/knowledge.rs enum Comparison { LessThan, Equal, GreaterThan, GreaterThanEqual, LessThanEqual, }
{ "chunk": null, "crate": "euclid_macros", "enum_name": "Comparison", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_euclid_macros_4049636221991286758
clm
enum
// hyperswitch/crates/euclid_macros/src/inner/knowledge.rs enum ValueType { Any, EnumVariant(String), Number { number: i64, comparison: Comparison }, }
{ "chunk": null, "crate": "euclid_macros", "enum_name": "ValueType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_euclid_macros_-4645186952899604156
clm
enum
// hyperswitch/crates/euclid_macros/src/inner/knowledge.rs enum Strength { Normal, Strong, }
{ "chunk": null, "crate": "euclid_macros", "enum_name": "Strength", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_euclid_macros_-8306863471120779704
clm
enum
// hyperswitch/crates/euclid_macros/src/inner/knowledge.rs enum Relation { Positive, Negative, }
{ "chunk": null, "crate": "euclid_macros", "enum_name": "Relation", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_masking_7992666693977630154
clm
enum
// hyperswitch/crates/masking/src/strategy.rs pub enum WithType {}
{ "chunk": null, "crate": "masking", "enum_name": "WithType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_masking_3304439796765384144
clm
enum
// hyperswitch/crates/masking/src/maskable.rs pub enum Maskable<T: Eq + PartialEq + Clone> { /// Variant which masks the data by wrapping in a Secret Masked(Secret<T>), /// Varant which doesn't mask the data Normal(T), }
{ "chunk": null, "crate": "masking", "enum_name": "Maskable", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_injector_2993933819704459429
clm
enum
// hyperswitch/crates/injector/src/injector.rs pub enum InjectorError { #[error("Token replacement failed: {0}")] TokenReplacementFailed(String), #[error("HTTP request failed")] HttpRequestFailed, #[error("Serialization error: {0}")] SerializationError(String), #[error("Invalid template: {0}")] InvalidTemplate(String), }
{ "chunk": null, "crate": "injector", "enum_name": "InjectorError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_injector_424220364191721985
clm
enum
// hyperswitch/crates/injector/src/types.rs pub enum ContentType { ApplicationJson, ApplicationXWwwFormUrlencoded, ApplicationXml, TextXml, TextPlain, }
{ "chunk": null, "crate": "injector", "enum_name": "ContentType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_injector_-727539223592731812
clm
enum
// hyperswitch/crates/injector/src/types.rs pub enum HttpMethod { GET, POST, PUT, PATCH, DELETE, }
{ "chunk": null, "crate": "injector", "enum_name": "HttpMethod", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_injector_3057662134771006022
clm
enum
// hyperswitch/crates/injector/src/types.rs pub enum VaultConnectors { /// VGS (Very Good Security) vault connector VGS, }
{ "chunk": null, "crate": "injector", "enum_name": "VaultConnectors", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_injector_-7476690156146702144
clm
enum
// hyperswitch/crates/injector/src/vault_metadata.rs pub enum VaultMetadataError { #[error("Failed to decode base64 vault metadata: {0}")] Base64DecodingFailed(String), #[error("Failed to parse vault metadata JSON: {0}")] JsonParsingFailed(String), #[error("Unsupported vault connector: {0}")] UnsupportedVaultConnector(String), #[error("Invalid URL in vault metadata: {0}")] InvalidUrl(String), #[error("Missing required field in vault metadata: {0}")] MissingRequiredField(String), #[error("Invalid certificate format: {0}")] InvalidCertificateFormat(String), #[error("Vault metadata header is empty or malformed")] EmptyOrMalformedHeader, #[error("URL validation failed for {field}: {url} - {reason}")] UrlValidationFailed { field: String, url: String, reason: String, }, #[error("Certificate validation failed: {0}")] CertificateValidationFailed(String), #[error("Vault metadata processing failed for connector {connector}: {reason}")] ProcessingFailed { connector: String, reason: String }, }
{ "chunk": null, "crate": "injector", "enum_name": "VaultMetadataError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_injector_-1768416350663103766
clm
enum
// hyperswitch/crates/injector/src/vault_metadata.rs pub enum ExternalVaultProxyMetadata { /// VGS proxy data variant VgsMetadata(VgsMetadata), }
{ "chunk": null, "crate": "injector", "enum_name": "ExternalVaultProxyMetadata", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_7180496025214817357
clm
enum
// hyperswitch/crates/analytics/src/types.rs pub enum AnalyticsDomain { Payments, Refunds, Frm, PaymentIntents, AuthEvents, SdkEvents, ApiEvents, Dispute, Routing, }
{ "chunk": null, "crate": "analytics", "enum_name": "AnalyticsDomain", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_5386315530245342680
clm
enum
// hyperswitch/crates/analytics/src/types.rs pub enum AnalyticsCollection { Payment, PaymentSessionized, Refund, RefundSessionized, FraudCheck, SdkEvents, SdkEventsAnalytics, ApiEvents, PaymentIntent, PaymentIntentSessionized, ConnectorEvents, OutgoingWebhookEvent, Authentications, Dispute, DisputeSessionized, ApiEventsAnalytics, ActivePaymentsAnalytics, RoutingEvents, }
{ "chunk": null, "crate": "analytics", "enum_name": "AnalyticsCollection", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-4372062679739131218
clm
enum
// hyperswitch/crates/analytics/src/types.rs pub enum TableEngine { CollapsingMergeTree { sign: &'static str }, BasicTree, }
{ "chunk": null, "crate": "analytics", "enum_name": "TableEngine", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-2171317784470449298
clm
enum
// hyperswitch/crates/analytics/src/types.rs pub enum MetricsError { #[error("Error building query")] QueryBuildingError, #[error("Error running Query")] QueryExecutionFailure, #[error("Error processing query results")] PostProcessingFailure, #[allow(dead_code)] #[error("Not Implemented")] NotImplemented, }
{ "chunk": null, "crate": "analytics", "enum_name": "MetricsError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_3693859642071950574
clm
enum
// hyperswitch/crates/analytics/src/types.rs pub enum QueryExecutionError { #[error("Failed to extract domain rows")] RowExtractionFailure, #[error("Database error")] DatabaseError, }
{ "chunk": null, "crate": "analytics", "enum_name": "QueryExecutionError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_6640540281168084579
clm
enum
// hyperswitch/crates/analytics/src/types.rs pub enum FiltersError { #[error("Error building query")] QueryBuildingError, #[error("Error running Query")] QueryExecutionFailure, #[allow(dead_code)] #[error("Not Implemented: {0}")] NotImplemented(&'static str), }
{ "chunk": null, "crate": "analytics", "enum_name": "FiltersError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-4208845425999036087
clm
enum
// hyperswitch/crates/analytics/src/clickhouse.rs pub enum ClickhouseError { #[error("Clickhouse connection error")] ConnectionError, #[error("Clickhouse NON-200 response content: '{0}'")] ResponseNotOK(String), #[error("Clickhouse response error")] ResponseError, }
{ "chunk": null, "crate": "analytics", "enum_name": "ClickhouseError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-7998938291033425243
clm
enum
// hyperswitch/crates/analytics/src/lib.rs pub enum AnalyticsProvider { Sqlx(SqlxClient), Clickhouse(ClickhouseClient), CombinedCkh(SqlxClient, ClickhouseClient), CombinedSqlx(SqlxClient, ClickhouseClient), }
{ "chunk": null, "crate": "analytics", "enum_name": "AnalyticsProvider", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-6278735771232582805
clm
enum
// hyperswitch/crates/analytics/src/lib.rs pub enum AnalyticsConfig { Sqlx { sqlx: Database, #[serde(default)] forex_enabled: bool, }, Clickhouse { clickhouse: ClickhouseConfig, #[serde(default)] forex_enabled: bool, }, CombinedCkh { sqlx: Database, clickhouse: ClickhouseConfig, #[serde(default)] forex_enabled: bool, }, CombinedSqlx { sqlx: Database, clickhouse: ClickhouseConfig, #[serde(default)] forex_enabled: bool, }, }
{ "chunk": null, "crate": "analytics", "enum_name": "AnalyticsConfig", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-2538420006782547288
clm
enum
// hyperswitch/crates/analytics/src/lib.rs pub enum AnalyticsFlow { GetInfo, GetPaymentMetrics, GetPaymentIntentMetrics, GetRefundsMetrics, GetFrmMetrics, GetSdkMetrics, GetAuthMetrics, GetAuthEventFilters, GetActivePaymentsMetrics, GetPaymentFilters, GetPaymentIntentFilters, GetRefundFilters, GetFrmFilters, GetSdkEventFilters, GetApiEvents, GetSdkEvents, GeneratePaymentReport, GenerateDisputeReport, GenerateRefundReport, GenerateAuthenticationReport, GetApiEventMetrics, GetApiEventFilters, GetConnectorEvents, GetOutgoingWebhookEvents, GetGlobalSearchResults, GetSearchResults, GetDisputeFilters, GetDisputeMetrics, GetSankey, GetRoutingEvents, }
{ "chunk": null, "crate": "analytics", "enum_name": "AnalyticsFlow", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-6166917101403624319
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum TimeGranularityLevel { Minute, Hour, Day, }
{ "chunk": null, "crate": "analytics", "enum_name": "TimeGranularityLevel", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-5996798099851872507
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum QueryBuildingError { #[allow(dead_code)] #[error("Not Implemented: {0}")] NotImplemented(String), #[error("Failed to Serialize to SQL")] SqlSerializeError, #[error("Failed to build sql query: {0}")] InvalidQuery(&'static str), }
{ "chunk": null, "crate": "analytics", "enum_name": "QueryBuildingError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-5623831134203941706
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum PostProcessingError { #[error("Error Clipping values to bucket sizes")] BucketClipping, }
{ "chunk": null, "crate": "analytics", "enum_name": "PostProcessingError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-5412031548368929432
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum Aggregate<R> { Count { field: Option<R>, alias: Option<&'static str>, }, Sum { field: R, alias: Option<&'static str>, }, Min { field: R, alias: Option<&'static str>, }, Max { field: R, alias: Option<&'static str>, }, Percentile { field: R, alias: Option<&'static str>, percentile: Option<&'static u8>, }, DistinctCount { field: R, alias: Option<&'static str>, }, }
{ "chunk": null, "crate": "analytics", "enum_name": "Aggregate", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-2629852426952109124
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum Window<R> { Sum { field: R, partition_by: Option<String>, order_by: Option<(String, Order)>, alias: Option<&'static str>, }, RowNumber { field: R, partition_by: Option<String>, order_by: Option<(String, Order)>, alias: Option<&'static str>, }, }
{ "chunk": null, "crate": "analytics", "enum_name": "Window", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-1570744404082133992
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum Order { Ascending, Descending, }
{ "chunk": null, "crate": "analytics", "enum_name": "Order", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_1907736242899244032
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum FilterCombinator { #[default] And, Or, }
{ "chunk": null, "crate": "analytics", "enum_name": "FilterCombinator", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-5221285357832523996
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum Filter { Plain(String, FilterTypes, String), NestedFilter(FilterCombinator, Vec<Filter>), }
{ "chunk": null, "crate": "analytics", "enum_name": "Filter", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_6650222258104206089
clm
enum
// hyperswitch/crates/analytics/src/query.rs pub enum FilterTypes { Equal, NotEqual, EqualBool, In, Gte, Lte, Gt, Like, NotLike, IsNotNull, }
{ "chunk": null, "crate": "analytics", "enum_name": "FilterTypes", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_4113620259173835928
clm
enum
// hyperswitch/crates/analytics/src/opensearch.rs pub enum OpenSearchAuth { Basic { username: String, password: String }, Aws { region: String }, }
{ "chunk": null, "crate": "analytics", "enum_name": "OpenSearchAuth", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_2614001441259275573
clm
enum
// hyperswitch/crates/analytics/src/opensearch.rs pub enum OpenSearchError { #[error("Opensearch is not enabled")] NotEnabled, #[error("Opensearch connection error")] ConnectionError, #[error("Opensearch NON-200 response content: '{0}'")] ResponseNotOK(String), #[error("Opensearch bad request error")] BadRequestError(String), #[error("Opensearch response error")] ResponseError, #[error("Opensearch query building error")] QueryBuildingError, #[error("Opensearch deserialisation error")] DeserialisationError, #[error("Opensearch index access not present error: {0:?}")] IndexAccessNotPermittedError(SearchIndex), #[error("Opensearch unknown error")] UnknownError, #[error("Opensearch access forbidden error")] AccessForbiddenError, }
{ "chunk": null, "crate": "analytics", "enum_name": "OpenSearchError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_8306384658985137120
clm
enum
// hyperswitch/crates/analytics/src/opensearch.rs pub enum OpenSearchHealthStatus { Red, Green, Yellow, }
{ "chunk": null, "crate": "analytics", "enum_name": "OpenSearchHealthStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_8991618832884030339
clm
enum
// hyperswitch/crates/analytics/src/opensearch.rs pub enum OpenSearchQuery { Msearch(Vec<SearchIndex>), Search(SearchIndex), }
{ "chunk": null, "crate": "analytics", "enum_name": "OpenSearchQuery", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-7167200680542284255
clm
enum
// hyperswitch/crates/analytics/src/errors.rs pub enum AnalyticsError { #[allow(dead_code)] #[error("Not implemented: {0}")] NotImplemented(&'static str), #[error("Unknown Analytics Error")] UnknownError, #[error("Access Forbidden Analytics Error")] AccessForbiddenError, #[error("Failed to fetch currency exchange rate")] ForexFetchFailed, }
{ "chunk": null, "crate": "analytics", "enum_name": "AnalyticsError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-1009093914390675195
clm
enum
// hyperswitch/crates/analytics/src/payments/core.rs pub enum TaskType { MetricTask( PaymentMetrics, CustomResult<HashSet<(PaymentMetricsBucketIdentifier, PaymentMetricRow)>, AnalyticsError>, ), DistributionTask( PaymentDistributions, CustomResult<Vec<(PaymentMetricsBucketIdentifier, PaymentDistributionRow)>, AnalyticsError>, ), }
{ "chunk": null, "crate": "analytics", "enum_name": "TaskType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-1009093914390675195
clm
enum
// hyperswitch/crates/analytics/src/payment_intents/core.rs pub enum TaskType { MetricTask( PaymentIntentMetrics, CustomResult< HashSet<(PaymentIntentMetricsBucketIdentifier, PaymentIntentMetricRow)>, AnalyticsError, >, ), }
{ "chunk": null, "crate": "analytics", "enum_name": "TaskType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_4115657829767763606
clm
enum
// hyperswitch/crates/analytics/src/payment_intents/sankey.rs pub enum SessionizerRefundStatus { FullRefunded, #[default] NotRefunded, PartialRefunded, }
{ "chunk": null, "crate": "analytics", "enum_name": "SessionizerRefundStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-207927318010411930
clm
enum
// hyperswitch/crates/analytics/src/payment_intents/sankey.rs pub enum SessionizerDisputeStatus { DisputePresent, #[default] NotDisputed, }
{ "chunk": null, "crate": "analytics", "enum_name": "SessionizerDisputeStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_analytics_-1009093914390675195
clm
enum
// hyperswitch/crates/analytics/src/refunds/core.rs pub enum TaskType { MetricTask( RefundMetrics, CustomResult<HashSet<(RefundMetricsBucketIdentifier, RefundMetricRow)>, AnalyticsError>, ), DistributionTask( RefundDistributions, CustomResult<Vec<(RefundMetricsBucketIdentifier, RefundDistributionRow)>, AnalyticsError>, ), }
{ "chunk": null, "crate": "analytics", "enum_name": "TaskType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_4731454631414628927
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/secrets_interface.rs pub enum SecretsManagementError { /// An error occurred when retrieving raw data. #[error("Failed to fetch the raw data")] FetchSecretFailed, /// Failed while creating kms client #[error("Failed while creating a secrets management client")] ClientCreationFailed, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "SecretsManagementError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_7088673091533470177
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/configs.rs pub enum MerchantConnectorAccountType { DbVal(Box<merchant_connector_account::MerchantConnectorAccount>), CacheVal(api_models::admin::MerchantConnectorDetails), }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "MerchantConnectorAccountType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_559690794174194800
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/connector_integration_interface.rs pub enum ConnectorEnum { /// Old connector type Old(BoxedConnector), /// New connector type New(BoxedConnectorV2), }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "ConnectorEnum", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_-5626689566844033769
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/connector_integration_interface.rs pub enum ConnectorIntegrationEnum<'a, F, ResourceCommonData, Req, Resp> { /// Old connector integration type Old(BoxedConnectorIntegration<'a, F, Req, Resp>), /// New connector integration type New(BoxedConnectorIntegrationV2<'a, F, ResourceCommonData, Req, Resp>), }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "ConnectorIntegrationEnum", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_-2648780264180598646
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/webhooks.rs pub enum IncomingWebhookFlowError { /// Resource not found for the webhook ResourceNotFound, /// Internal error for the webhook InternalError, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "IncomingWebhookFlowError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_249387816686069630
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/encryption_interface.rs pub enum EncryptionError { /// An error occurred when encrypting input data. #[error("Failed to encrypt input data")] EncryptionFailed, /// An error occurred when decrypting input data. #[error("Failed to decrypt input data")] DecryptionFailed, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "EncryptionError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_7500616186308112048
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/errors.rs pub enum ConnectorError { #[error("Error while obtaining URL for the integration")] FailedToObtainIntegrationUrl, #[error("Failed to encode connector request")] RequestEncodingFailed, #[error("Request encoding failed : {0}")] RequestEncodingFailedWithReason(String), #[error("Parsing failed")] ParsingFailed, #[error("Failed to deserialize connector response")] ResponseDeserializationFailed, #[error("Failed to execute a processing step: {0:?}")] ProcessingStepFailed(Option<bytes::Bytes>), #[error("The connector returned an unexpected response: {0:?}")] UnexpectedResponseError(bytes::Bytes), #[error("Failed to parse custom routing rules from merchant account")] RoutingRulesParsingError, #[error("Failed to obtain preferred connector from merchant account")] FailedToObtainPreferredConnector, #[error("An invalid connector name was provided")] InvalidConnectorName, #[error("An invalid Wallet was used")] InvalidWallet, #[error("Failed to handle connector response")] ResponseHandlingFailed, #[error("Missing required field: {field_name}")] MissingRequiredField { field_name: &'static str }, #[error("Missing required fields: {field_names:?}")] MissingRequiredFields { field_names: Vec<&'static str> }, #[error("Failed to obtain authentication type")] FailedToObtainAuthType, #[error("Failed to obtain certificate")] FailedToObtainCertificate, #[error("Connector meta data not found")] NoConnectorMetaData, #[error("Connector wallet details not found")] NoConnectorWalletDetails, #[error("Failed to obtain certificate key")] FailedToObtainCertificateKey, #[error("This step has not been implemented for: {0}")] NotImplemented(String), #[error("{message} is not supported by {connector}")] NotSupported { message: String, connector: &'static str, }, #[error("{flow} flow not supported by {connector} connector")] FlowNotSupported { flow: String, connector: String }, #[error("Capture method not supported")] CaptureMethodNotSupported, #[error("Missing connector mandate ID")] MissingConnectorMandateID, #[error("Missing connector mandate metadata")] MissingConnectorMandateMetadata, #[error("Missing connector transaction ID")] MissingConnectorTransactionID, #[error("Missing connector refund ID")] MissingConnectorRefundID, #[error("Missing apple pay tokenization data")] MissingApplePayTokenData, #[error("Webhooks not implemented for this connector")] WebhooksNotImplemented, #[error("Failed to decode webhook event body")] WebhookBodyDecodingFailed, #[error("Signature not found for incoming webhook")] WebhookSignatureNotFound, #[error("Failed to verify webhook source")] WebhookSourceVerificationFailed, #[error("Could not find merchant secret in DB for incoming webhook source verification")] WebhookVerificationSecretNotFound, #[error("Merchant secret found for incoming webhook source verification is invalid")] WebhookVerificationSecretInvalid, #[error("Incoming webhook object reference ID not found")] WebhookReferenceIdNotFound, #[error("Incoming webhook event type not found")] WebhookEventTypeNotFound, #[error("Incoming webhook event resource object not found")] WebhookResourceObjectNotFound, #[error("Could not respond to the incoming webhook event")] WebhookResponseEncodingFailed, #[error("Invalid Date/time format")] InvalidDateFormat, #[error("Date Formatting Failed")] DateFormattingFailed, #[error("Invalid Data format")] InvalidDataFormat { field_name: &'static str }, #[error("Payment Method data / Payment Method Type / Payment Experience Mismatch ")] MismatchedPaymentData, #[error("Failed to parse {wallet_name} wallet token")] InvalidWalletToken { wallet_name: String }, #[error("Missing Connector Related Transaction ID")] MissingConnectorRelatedTransactionID { id: String }, #[error("File Validation failed")] FileValidationFailed { reason: String }, #[error("Missing 3DS redirection payload: {field_name}")] MissingConnectorRedirectionPayload { field_name: &'static str }, #[error("Failed at connector's end with code '{code}'")] FailedAtConnector { message: String, code: String }, #[error("Payment Method Type not found")] MissingPaymentMethodType, #[error("Balance in the payment method is low")] InSufficientBalanceInPaymentMethod, #[error("Server responded with Request Timeout")] RequestTimeoutReceived, #[error("The given currency method is not configured with the given connector")] CurrencyNotSupported { message: String, connector: &'static str, }, #[error("Invalid Configuration")] InvalidConnectorConfig { config: &'static str }, #[error("Failed to convert amount to required type")] AmountConversionFailed, #[error("Generic Error")] GenericError { error_message: String, error_object: serde_json::Value, }, #[error("Field {fields} doesn't match with the ones used during mandate creation")] MandatePaymentDataMismatch { fields: String }, #[error("Field '{field_name}' is too long for connector '{connector}'")] MaxFieldLengthViolated { connector: String, field_name: String, max_length: usize, received_length: usize, }, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "ConnectorError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_6366754706341412667
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/errors.rs pub enum HttpClientError { #[error("Header map construction failed")] HeaderMapConstructionFailed, #[error("Invalid proxy configuration")] InvalidProxyConfiguration, #[error("Client construction failed")] ClientConstructionFailed, #[error("Certificate decode failed")] CertificateDecodeFailed, #[error("Request body serialization failed")] BodySerializationFailed, #[error("Unexpected state reached/Invariants conflicted")] UnexpectedState, #[error("Failed to parse URL")] UrlParsingFailed, #[error("URL encoding of request payload failed")] UrlEncodingFailed, #[error("Failed to send request to connector {0}")] RequestNotSent(String), #[error("Failed to decode response")] ResponseDecodingFailed, #[error("Server responded with Request Timeout")] RequestTimeoutReceived, #[error("connection closed before a message could complete")] ConnectionClosedIncompleteMessage, #[error("Server responded with Internal Server Error")] InternalServerErrorReceived, #[error("Server responded with Bad Gateway")] BadGatewayReceived, #[error("Server responded with Service Unavailable")] ServiceUnavailableReceived, #[error("Server responded with Gateway Timeout")] GatewayTimeoutReceived, #[error("Server responded with unexpected response")] UnexpectedServerResponse, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "HttpClientError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_5799545555324764621
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/api.rs pub enum CaptureSyncMethod { /// For syncing multiple captures individually Individual, /// For syncing multiple captures together Bulk, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "CaptureSyncMethod", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_-7933032413666960574
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/api.rs pub enum CurrencyUnit { /// Base currency unit Base, /// Minor currency unit Minor, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "CurrencyUnit", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_5891825986216296345
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs pub enum UnifiedConnectorServiceError { /// Error occurred while communicating with the gRPC server. #[error("Error from gRPC Server : {0}")] ConnectionError(String), /// Failed to encode the request to the unified connector service. #[error("Failed to encode unified connector service request")] RequestEncodingFailed, /// Request encoding failed due to a specific reason. #[error("Request encoding failed : {0}")] RequestEncodingFailedWithReason(String), /// Failed to deserialize the response from the connector. #[error("Failed to deserialize connector response")] ResponseDeserializationFailed, /// The connector name provided is invalid or unrecognized. #[error("An invalid connector name was provided")] InvalidConnectorName, /// Connector name is missing #[error("Connector name is missing")] MissingConnectorName, /// A required field was missing in the request. #[error("Missing required field: {field_name}")] MissingRequiredField { /// Missing Field field_name: &'static str, }, /// Multiple required fields were missing in the request. #[error("Missing required fields: {field_names:?}")] MissingRequiredFields { /// Missing Fields field_names: Vec<&'static str>, }, /// The requested step or feature is not yet implemented. #[error("This step has not been implemented for: {0}")] NotImplemented(String), /// Parsing of some value or input failed. #[error("Parsing failed")] ParsingFailed, /// Data format provided is invalid #[error("Invalid Data format")] InvalidDataFormat { /// Field Name for which data is invalid field_name: &'static str, }, /// Failed to obtain authentication type #[error("Failed to obtain authentication type")] FailedToObtainAuthType, /// Failed to inject metadata into request headers #[error("Failed to inject metadata into request headers: {0}")] HeaderInjectionFailed(String), /// Failed to perform Payment Authorize from gRPC Server #[error("Failed to perform Payment Authorize from gRPC Server")] PaymentAuthorizeFailure, /// Failed to perform Payment Get from gRPC Server #[error("Failed to perform Payment Get from gRPC Server")] PaymentGetFailure, /// Failed to perform Payment Setup Mandate from gRPC Server #[error("Failed to perform Setup Mandate from gRPC Server")] PaymentRegisterFailure, /// Failed to perform Payment Repeat Payment from gRPC Server #[error("Failed to perform Repeat Payment from gRPC Server")] PaymentRepeatEverythingFailure, /// Failed to transform incoming webhook from gRPC Server #[error("Failed to transform incoming webhook from gRPC Server")] WebhookTransformFailure, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "UnifiedConnectorServiceError", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_1273479180407320588
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/api/files.rs pub enum FilePurpose { /// DisputeEvidence DisputeEvidence, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "FilePurpose", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_-7801258713200387677
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/events/routing_api_logs.rs pub enum RoutingEngine { /// Dynamo for routing IntelligentRouter, /// Decision engine for routing DecisionEngine, }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "RoutingEngine", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_hyperswitch_interfaces_-3710814897640538829
clm
enum
// hyperswitch/crates/hyperswitch_interfaces/src/events/routing_api_logs.rs pub enum ApiMethod { /// grpc call Grpc, /// Rest call Rest(Method), }
{ "chunk": null, "crate": "hyperswitch_interfaces", "enum_name": "ApiMethod", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-5119967743800699128
clm
enum
// hyperswitch/crates/router/src/types.rs pub enum Redirection { Redirect, NoRedirect, }
{ "chunk": null, "crate": "router", "enum_name": "Redirection", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-3610441872286178447
clm
enum
// hyperswitch/crates/router/src/types.rs pub enum RecipientIdType { ConnectorId(Secret<String>), LockerId(Secret<String>), }
{ "chunk": null, "crate": "router", "enum_name": "RecipientIdType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_5805682897264860111
clm
enum
// hyperswitch/crates/router/src/types.rs pub enum MerchantAccountData { Iban { iban: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, Bacs { account_number: Secret<String>, sort_code: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, FasterPayments { account_number: Secret<String>, sort_code: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, Sepa { iban: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, SepaInstant { iban: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, Elixir { account_number: Secret<String>, iban: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, Bankgiro { number: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, Plusgiro { number: Secret<String>, name: String, connector_recipient_id: Option<RecipientIdType>, }, }
{ "chunk": null, "crate": "router", "enum_name": "MerchantAccountData", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_2523434528347059879
clm
enum
// hyperswitch/crates/router/src/types.rs pub enum MerchantRecipientData { ConnectorRecipientId(Secret<String>), WalletId(Secret<String>), AccountData(MerchantAccountData), }
{ "chunk": null, "crate": "router", "enum_name": "MerchantRecipientData", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_1526347332915044270
clm
enum
// hyperswitch/crates/router/src/types.rs pub enum AdditionalMerchantData { OpenBankingRecipientData(MerchantRecipientData), }
{ "chunk": null, "crate": "router", "enum_name": "AdditionalMerchantData", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_3512806708775246390
clm
enum
// hyperswitch/crates/router/src/events.rs pub enum EventType { PaymentIntent, FraudCheck, PaymentAttempt, Refund, ApiLogs, ConnectorApiLogs, OutgoingWebhookLogs, Dispute, AuditEvent, #[cfg(feature = "payouts")] Payout, Consolidated, Authentication, RoutingApiLogs, RevenueRecovery, }
{ "chunk": null, "crate": "router", "enum_name": "EventType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-1754273069710891600
clm
enum
// hyperswitch/crates/router/src/events.rs pub enum EventsConfig { Kafka { kafka: Box<KafkaSettings>, }, #[default] Logs, }
{ "chunk": null, "crate": "router", "enum_name": "EventsConfig", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_931121195017197607
clm
enum
// hyperswitch/crates/router/src/events.rs pub enum EventsHandler { Kafka(KafkaProducer), Logs(event_logger::EventLogger), }
{ "chunk": null, "crate": "router", "enum_name": "EventsHandler", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-4961718354297653814
clm
enum
// hyperswitch/crates/router/src/db.rs pub enum StorageImpl { Postgresql, PostgresqlTest, Mock, }
{ "chunk": null, "crate": "router", "enum_name": "StorageImpl", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-2426207709215775980
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/webhooks.rs pub enum StripeWebhookObject { PaymentIntent(Box<StripePaymentIntentResponse>), Refund(StripeRefundResponse), Dispute(StripeDisputeResponse), Mandate(StripeMandateResponse), #[cfg(feature = "payouts")] Payout(StripePayoutResponse), }
{ "chunk": null, "crate": "router", "enum_name": "StripeWebhookObject", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-5327198169973023079
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/webhooks.rs pub enum StripePayoutStatus { PayoutSuccess, PayoutFailure, PayoutProcessing, PayoutCancelled, PayoutInitiated, PayoutExpired, PayoutReversed, }
{ "chunk": null, "crate": "router", "enum_name": "StripePayoutStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-6559620687223640914
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/webhooks.rs pub enum StripeMandateStatus { Active, Inactive, Pending, }
{ "chunk": null, "crate": "router", "enum_name": "StripeMandateStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_3683775239299394980
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/webhooks.rs pub enum StripeDisputeStatus { WarningNeedsResponse, WarningUnderReview, WarningClosed, NeedsResponse, UnderReview, ChargeRefunded, Won, Lost, }
{ "chunk": null, "crate": "router", "enum_name": "StripeDisputeStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_6692423404905181166
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/errors.rs pub enum StripeErrorCode { /* "error": { "message": "Invalid API Key provided: sk_jkjgs****nlgs", "type": "invalid_request_error" } */ #[error( error_type = StripeErrorType::InvalidRequestError, code = "IR_01", message = "Invalid API Key provided" )] Unauthorized, #[error(error_type = StripeErrorType::InvalidRequestError, code = "IR_02", message = "Unrecognized request URL.")] InvalidRequestUrl, #[error(error_type = StripeErrorType::InvalidRequestError, code = "parameter_missing", message = "Missing required param: {field_name}.")] ParameterMissing { field_name: String, param: String }, #[error( error_type = StripeErrorType::InvalidRequestError, code = "parameter_unknown", message = "{field_name} contains invalid data. Expected format is {expected_format}." )] ParameterUnknown { field_name: String, expected_format: String, }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "IR_06", message = "The refund amount exceeds the amount captured.")] RefundAmountExceedsPaymentAmount { param: String }, #[error(error_type = StripeErrorType::ApiError, code = "payment_intent_authentication_failure", message = "Payment failed while processing with connector. Retry payment.")] PaymentIntentAuthenticationFailure { data: Option<serde_json::Value> }, #[error(error_type = StripeErrorType::ApiError, code = "payment_intent_payment_attempt_failed", message = "Capture attempt failed while processing with connector.")] PaymentIntentPaymentAttemptFailed { data: Option<serde_json::Value> }, #[error(error_type = StripeErrorType::ApiError, code = "dispute_failure", message = "Dispute failed while processing with connector. Retry operation.")] DisputeFailed { data: Option<serde_json::Value> }, #[error(error_type = StripeErrorType::CardError, code = "expired_card", message = "Card Expired. Please use another card")] ExpiredCard, #[error(error_type = StripeErrorType::CardError, code = "invalid_card_type", message = "Card data is invalid")] InvalidCardType, #[error( error_type = StripeErrorType::ConnectorError, code = "invalid_wallet_token", message = "Invalid {wallet_name} wallet token" )] InvalidWalletToken { wallet_name: String }, #[error(error_type = StripeErrorType::ApiError, code = "refund_failed", message = "refund has failed")] RefundFailed, // stripe error code #[error(error_type = StripeErrorType::ApiError, code = "payout_failed", message = "payout has failed")] PayoutFailed, #[error(error_type = StripeErrorType::ApiError, code = "external_vault_failed", message = "external vault has failed")] ExternalVaultFailed, #[error(error_type = StripeErrorType::ApiError, code = "internal_server_error", message = "Server is down")] InternalServerError, #[error(error_type = StripeErrorType::ApiError, code = "internal_server_error", message = "Server is down")] DuplicateRefundRequest, #[error(error_type = StripeErrorType::InvalidRequestError, code = "active_mandate", message = "Customer has active mandate")] MandateActive, #[error(error_type = StripeErrorType::InvalidRequestError, code = "customer_redacted", message = "Customer has redacted")] CustomerRedacted, #[error(error_type = StripeErrorType::InvalidRequestError, code = "customer_already_exists", message = "Customer with the given customer_id already exists")] DuplicateCustomer, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such refund")] RefundNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "client_secret_invalid", message = "Expected client secret to be included in the request")] ClientSecretNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such customer")] CustomerNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such config")] ConfigNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "duplicate_resource", message = "Duplicate config")] DuplicateConfig, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such payment")] PaymentNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such payment method")] PaymentMethodNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "{message}")] GenericNotFoundError { message: String }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "duplicate_resource", message = "{message}")] GenericDuplicateError { message: String }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such merchant account")] MerchantAccountNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such resource ID")] ResourceIdNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "Merchant connector account does not exist in our records")] MerchantConnectorAccountNotFound { id: String }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "invalid_request", message = "The merchant connector account is disabled")] MerchantConnectorAccountDisabled, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such mandate")] MandateNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such API key")] ApiKeyNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such payout")] PayoutNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "resource_missing", message = "No such event")] EventNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "token_already_used", message = "Duplicate payout request")] DuplicatePayout { payout_id: id_type::PayoutId }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "parameter_missing", message = "Return url is not available")] ReturnUrlUnavailable, #[error(error_type = StripeErrorType::InvalidRequestError, code = "token_already_used", message = "duplicate merchant account")] DuplicateMerchantAccount, #[error(error_type = StripeErrorType::InvalidRequestError, code = "token_already_used", message = "The merchant connector account with the specified profile_id '{profile_id}' and connector_label '{connector_label}' already exists in our records")] DuplicateMerchantConnectorAccount { profile_id: String, connector_label: String, }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "token_already_used", message = "duplicate payment method")] DuplicatePaymentMethod, #[error(error_type = StripeErrorType::InvalidRequestError, code = "" , message = "deserialization failed: {error_message}")] SerdeQsError { error_message: String, param: Option<String>, }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "payment_intent_invalid_parameter" , message = "The client_secret provided does not match the client_secret associated with the PaymentIntent.")] PaymentIntentInvalidParameter { param: String }, #[error( error_type = StripeErrorType::InvalidRequestError, code = "IR_05", message = "{message}" )] InvalidRequestData { message: String }, #[error( error_type = StripeErrorType::InvalidRequestError, code = "IR_10", message = "{message}" )] PreconditionFailed { message: String }, #[error( error_type = StripeErrorType::InvalidRequestError, code = "", message = "The payment has not succeeded yet" )] PaymentFailed, #[error( error_type = StripeErrorType::InvalidRequestError, code = "", message = "The verification did not succeeded" )] VerificationFailed { data: Option<serde_json::Value> }, #[error( error_type = StripeErrorType::InvalidRequestError, code = "", message = "Reached maximum refund attempts" )] MaximumRefundCount, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "Duplicate mandate request. Mandate already attempted with the Mandate ID.")] DuplicateMandate, #[error(error_type= StripeErrorType::InvalidRequestError, code = "", message = "Successful payment not found for the given payment id")] SuccessfulPaymentNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "Address does not exist in our records.")] AddressNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "This PaymentIntent could not be {current_flow} because it has a {field_name} of {current_value}. The expected state is {states}.")] PaymentIntentUnexpectedState { current_flow: String, field_name: String, current_value: String, states: String, }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "The mandate information is invalid. {message}")] PaymentIntentMandateInvalid { message: String }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "The payment with the specified payment_id already exists in our records.")] DuplicatePayment { payment_id: id_type::PaymentId }, #[error(error_type = StripeErrorType::ConnectorError, code = "", message = "{code}: {message}")] ExternalConnectorError { code: String, message: String, connector: String, status_code: u16, }, #[error(error_type = StripeErrorType::CardError, code = "", message = "{code}: {message}")] PaymentBlockedError { code: u16, message: String, status: String, reason: String, }, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "The connector provided in the request is incorrect or not available")] IncorrectConnectorNameGiven, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "No such {object}: '{id}'")] ResourceMissing { object: String, id: String }, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "File validation failed")] FileValidationFailed, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "File not found in the request")] MissingFile, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "File puropse not found in the request")] MissingFilePurpose, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "File content type not found")] MissingFileContentType, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "Dispute id not found in the request")] MissingDisputeId, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "File does not exists in our records")] FileNotFound, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "File not available")] FileNotAvailable, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "Not Supported because provider is not Router")] FileProviderNotSupported, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "There was an issue with processing webhooks")] WebhookProcessingError, #[error(error_type = StripeErrorType::InvalidRequestError, code = "payment_method_unactivated", message = "The operation cannot be performed as the payment method used has not been activated. Activate the payment method in the Dashboard, then try again.")] PaymentMethodUnactivated, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "{message}")] HyperswitchUnprocessableEntity { message: String }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "{message}")] CurrencyNotSupported { message: String }, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "Payment Link does not exist in our records")] PaymentLinkNotFound, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "Resource Busy. Please try again later")] LockTimeout, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "Merchant connector account is configured with invalid {config}")] InvalidConnectorConfiguration { config: String }, #[error(error_type = StripeErrorType::HyperswitchError, code = "HE_01", message = "Failed to convert currency to minor unit")] CurrencyConversionFailed, #[error(error_type = StripeErrorType::InvalidRequestError, code = "IR_25", message = "Cannot delete the default payment method")] PaymentMethodDeleteFailed, #[error(error_type = StripeErrorType::InvalidRequestError, code = "", message = "Extended card info does not exist")] ExtendedCardInfoNotFound, #[error(error_type = StripeErrorType::InvalidRequestError, code = "not_configured", message = "{message}")] LinkConfigurationError { message: String }, #[error(error_type = StripeErrorType::ConnectorError, code = "CE", message = "{reason} as data mismatched for {field_names}")] IntegrityCheckFailed { reason: String, field_names: String, connector_transaction_id: Option<String>, }, #[error(error_type = StripeErrorType::InvalidRequestError, code = "IR_28", message = "Invalid tenant")] InvalidTenant, #[error(error_type = StripeErrorType::HyperswitchError, code = "HE_01", message = "Failed to convert amount to {amount_type} type")] AmountConversionFailed { amount_type: &'static str }, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "Platform Bad Request")] PlatformBadRequest, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "Platform Unauthorized Request")] PlatformUnauthorizedRequest, #[error(error_type = StripeErrorType::HyperswitchError, code = "", message = "Profile Acquirer not found")] ProfileAcquirerNotFound, #[error(error_type = StripeErrorType::HyperswitchError, code = "Subscription Error", message = "Subscription operation: {operation} failed with connector")] SubscriptionError { operation: String }, // [#216]: https://github.com/juspay/hyperswitch/issues/216 // Implement the remaining stripe error codes /* AccountCountryInvalidAddress, AccountErrorCountryChangeRequiresAdditionalSteps, AccountInformationMismatch, AccountInvalid, AccountNumberInvalid, AcssDebitSessionIncomplete, AlipayUpgradeRequired, AmountTooLarge, AmountTooSmall, ApiKeyExpired, AuthenticationRequired, BalanceInsufficient, BankAccountBadRoutingNumbers, BankAccountDeclined, BankAccountExists, BankAccountUnusable, BankAccountUnverified, BankAccountVerificationFailed, BillingInvalidMandate, BitcoinUpgradeRequired, CardDeclineRateLimitExceeded, CardDeclined, CardholderPhoneNumberRequired, ChargeAlreadyCaptured, ChargeAlreadyRefunded, ChargeDisputed, ChargeExceedsSourceLimit, ChargeExpiredForCapture, ChargeInvalidParameter, ClearingCodeUnsupported, CountryCodeInvalid, CountryUnsupported, CouponExpired, CustomerMaxPaymentMethods, CustomerMaxSubscriptions, DebitNotAuthorized, EmailInvalid, ExpiredCard, IdempotencyKeyInUse, IncorrectAddress, IncorrectCvc, IncorrectNumber, IncorrectZip, InstantPayoutsConfigDisabled, InstantPayoutsCurrencyDisabled, InstantPayoutsLimitExceeded, InstantPayoutsUnsupported, InsufficientFunds, IntentInvalidState, IntentVerificationMethodMissing, InvalidCardType, InvalidCharacters, InvalidChargeAmount, InvalidCvc, InvalidExpiryMonth, InvalidExpiryYear, InvalidNumber, InvalidSourceUsage, InvoiceNoCustomerLineItems, InvoiceNoPaymentMethodTypes, InvoiceNoSubscriptionLineItems, InvoiceNotEditable, InvoiceOnBehalfOfNotEditable, InvoicePaymentIntentRequiresAction, InvoiceUpcomingNone, LivemodeMismatch, LockTimeout, Missing, NoAccount, NotAllowedOnStandardAccount, OutOfInventory, ParameterInvalidEmpty, ParameterInvalidInteger, ParameterInvalidStringBlank, ParameterInvalidStringEmpty, ParametersExclusive, PaymentIntentActionRequired, PaymentIntentIncompatiblePaymentMethod, PaymentIntentInvalidParameter, PaymentIntentKonbiniRejectedConfirmationNumber, PaymentIntentPaymentAttemptExpired, PaymentIntentUnexpectedState, PaymentMethodBankAccountAlreadyVerified, PaymentMethodBankAccountBlocked, PaymentMethodBillingDetailsAddressMissing, PaymentMethodCurrencyMismatch, PaymentMethodInvalidParameter, PaymentMethodInvalidParameterTestmode, PaymentMethodMicrodepositFailed, PaymentMethodMicrodepositVerificationAmountsInvalid, PaymentMethodMicrodepositVerificationAmountsMismatch, PaymentMethodMicrodepositVerificationAttemptsExceeded, PaymentMethodMicrodepositVerificationDescriptorCodeMismatch, PaymentMethodMicrodepositVerificationTimeout, PaymentMethodProviderDecline, PaymentMethodProviderTimeout, PaymentMethodUnexpectedState, PaymentMethodUnsupportedType, PayoutsNotAllowed, PlatformAccountRequired, PlatformApiKeyExpired, PostalCodeInvalid, ProcessingError, ProductInactive, RateLimit, ReferToCustomer, RefundDisputedPayment, ResourceAlreadyExists, ResourceMissing, ReturnIntentAlreadyProcessed, RoutingNumberInvalid, SecretKeyRequired, SepaUnsupportedAccount, SetupAttemptFailed, SetupIntentAuthenticationFailure, SetupIntentInvalidParameter, SetupIntentSetupAttemptExpired, SetupIntentUnexpectedState, ShippingCalculationFailed, SkuInactive, StateUnsupported, StatusTransitionInvalid, TaxIdInvalid, TaxesCalculationFailed, TerminalLocationCountryUnsupported, TestmodeChargesOnly, TlsVersionUnsupported, TokenInUse, TransferSourceBalanceParametersMismatch, TransfersNotAllowed, */ }
{ "chunk": null, "crate": "router", "enum_name": "StripeErrorCode", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-5282596383526295676
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/errors.rs pub enum StripeErrorType { ApiError, CardError, InvalidRequestError, ConnectorError, HyperswitchError, }
{ "chunk": null, "crate": "router", "enum_name": "StripeErrorType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_3066660685230063563
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum StripeWallet { ApplePay(payments::ApplePayWalletData), }
{ "chunk": null, "crate": "router", "enum_name": "StripeWallet", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-6364895934818616388
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum StripePaymentMethodType { #[default] Card, Wallet, Upi, BankRedirect, RealTimePayment, }
{ "chunk": null, "crate": "router", "enum_name": "StripePaymentMethodType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_9096600488134752277
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum StripePaymentMethodDetails { Card(StripeCard), Wallet(StripeWallet), Upi(StripeUpi), }
{ "chunk": null, "crate": "router", "enum_name": "StripePaymentMethodDetails", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-6353509039094888090
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum AcceptanceType { Online, #[default] Offline, }
{ "chunk": null, "crate": "router", "enum_name": "AcceptanceType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_3684788949470224586
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum StripePaymentStatus { Succeeded, Canceled, #[default] Processing, RequiresAction, RequiresPaymentMethod, RequiresConfirmation, RequiresCapture, }
{ "chunk": null, "crate": "router", "enum_name": "StripePaymentStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_7093100089582835125
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum CancellationReason { Duplicate, Fraudulent, RequestedByCustomer, Abandoned, }
{ "chunk": null, "crate": "router", "enum_name": "CancellationReason", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_2344030829040691114
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum StripePaymentMethodOptions { Card { request_three_d_secure: Option<Request3DS>, }, }
{ "chunk": null, "crate": "router", "enum_name": "StripePaymentMethodOptions", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_3712403306347285875
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum StripeMandateType { SingleUse, MultiUse, }
{ "chunk": null, "crate": "router", "enum_name": "StripeMandateType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-8230720862048357622
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum Request3DS { #[default] Automatic, Any, }
{ "chunk": null, "crate": "router", "enum_name": "Request3DS", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-6014573824227592832
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/payment_intents/types.rs pub enum StripeNextAction { RedirectToUrl { redirect_to_url: RedirectUrl, }, DisplayBankTransferInformation { bank_transfer_steps_and_charges_details: payments::BankTransferNextStepsData, }, ThirdPartySdkSessionToken { session_token: Option<payments::SessionToken>, }, QrCodeInformation { image_data_url: Option<url::Url>, display_to_timestamp: Option<i64>, qr_code_url: Option<url::Url>, border_color: Option<String>, display_text: Option<String>, }, FetchQrCodeInformation { qr_code_fetch_url: url::Url, }, DisplayVoucherInformation { voucher_details: payments::VoucherNextStepData, }, WaitScreenInformation { display_from_timestamp: i128, display_to_timestamp: Option<i128>, poll_config: Option<payments::PollConfig>, }, InvokeSdkClient { next_action_data: payments::SdkNextActionData, }, CollectOtp { consent_data_required: payments::MobilePaymentConsent, }, InvokeHiddenIframe { iframe_data: payments::IframeData, }, SdkUpiIntentInformation { sdk_uri: url::Url, }, }
{ "chunk": null, "crate": "router", "enum_name": "StripeNextAction", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_3066660685230063563
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/setup_intents/types.rs pub enum StripeWallet { ApplePay(payments::ApplePayWalletData), }
{ "chunk": null, "crate": "router", "enum_name": "StripeWallet", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-6364895934818616388
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/setup_intents/types.rs pub enum StripePaymentMethodType { #[default] Card, Wallet, }
{ "chunk": null, "crate": "router", "enum_name": "StripePaymentMethodType", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_9096600488134752277
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/setup_intents/types.rs pub enum StripePaymentMethodDetails { Card(StripeCard), Wallet(StripeWallet), }
{ "chunk": null, "crate": "router", "enum_name": "StripePaymentMethodDetails", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-6883889729796900827
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/setup_intents/types.rs pub enum StripeSetupStatus { Succeeded, Canceled, #[default] Processing, RequiresAction, RequiresPaymentMethod, RequiresConfirmation, }
{ "chunk": null, "crate": "router", "enum_name": "StripeSetupStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_7093100089582835125
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/setup_intents/types.rs pub enum CancellationReason { Duplicate, Fraudulent, RequestedByCustomer, Abandoned, }
{ "chunk": null, "crate": "router", "enum_name": "CancellationReason", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-6014573824227592832
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/setup_intents/types.rs pub enum StripeNextAction { RedirectToUrl { redirect_to_url: RedirectUrl, }, DisplayBankTransferInformation { bank_transfer_steps_and_charges_details: payments::BankTransferNextStepsData, }, ThirdPartySdkSessionToken { session_token: Option<payments::SessionToken>, }, QrCodeInformation { image_data_url: Option<url::Url>, display_to_timestamp: Option<i64>, qr_code_url: Option<url::Url>, border_color: Option<String>, display_text: Option<String>, }, FetchQrCodeInformation { qr_code_fetch_url: url::Url, }, DisplayVoucherInformation { voucher_details: payments::VoucherNextStepData, }, WaitScreenInformation { display_from_timestamp: i128, display_to_timestamp: Option<i128>, poll_config: Option<payments::PollConfig>, }, InvokeSdkClient { next_action_data: payments::SdkNextActionData, }, CollectOtp { consent_data_required: payments::MobilePaymentConsent, }, InvokeHiddenIframe { iframe_data: payments::IframeData, }, SdkUpiIntentInformation { sdk_uri: url::Url, }, }
{ "chunk": null, "crate": "router", "enum_name": "StripeNextAction", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_-2018609002592306796
clm
enum
// hyperswitch/crates/router/src/compatibility/stripe/refunds/types.rs pub enum StripeRefundStatus { Succeeded, Failed, Pending, RequiresAction, }
{ "chunk": null, "crate": "router", "enum_name": "StripeRefundStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_4635990546319852343
clm
enum
// hyperswitch/crates/router/src/types/payment_methods.rs pub enum DeleteNetworkTokenStatus { Success, }
{ "chunk": null, "crate": "router", "enum_name": "DeleteNetworkTokenStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
hyperswitch_enum_router_7247297253347563201
clm
enum
// hyperswitch/crates/router/src/types/payment_methods.rs pub enum TokenStatus { Active, Suspended, Deactivated, }
{ "chunk": null, "crate": "router", "enum_name": "TokenStatus", "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }