id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
hyperswitch_struct_api_models_-424846100808486183
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct ContractBasedRoutingSetupPayloadWrapper { pub config: Option<ContractBasedRoutingConfig>, pub profile_id: common_utils::id_type::ProfileId, pub features_to_enable: DynamicRoutingFeatures, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ContractBasedRoutingSetupPayloadWrapper", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-3852948233122293853
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct ContractBasedRoutingConfig { pub config: Option<ContractBasedRoutingConfigBody>, pub label_info: Option<Vec<LabelInformation>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ContractBasedRoutingConfig", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-2169749319149429911
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct ContractBasedRoutingConfigBody { pub constants: Option<Vec<f64>>, pub time_scale: Option<ContractBasedTimeScale>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ContractBasedRoutingConfigBody", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_5302098106447923172
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct LabelInformation { pub label: String, pub target_count: u64, pub target_time: u64, #[schema(value_type = String)] pub mca_id: common_utils::id_type::MerchantConnectorAccountId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "LabelInformation", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-8562648108795354055
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct RoutableConnectorChoiceWithBucketName { pub routable_connector_choice: RoutableConnectorChoice, pub bucket_name: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RoutableConnectorChoiceWithBucketName", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_8813760153367639613
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct CalSuccessRateConfigEventRequest { pub min_aggregates_size: Option<u32>, pub default_success_rate: Option<f64>, pub specificity_level: SuccessRateSpecificityLevel, pub exploration_percent: Option<f64>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "CalSuccessRateConfigEventRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-8784636983113603258
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct CalSuccessRateEventRequest { pub id: String, pub params: String, pub labels: Vec<String>, pub config: Option<CalSuccessRateConfigEventRequest>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "CalSuccessRateEventRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-8593702106855859196
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct EliminationRoutingEventBucketConfig { pub bucket_size: Option<u64>, pub bucket_leak_interval_in_secs: Option<u64>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EliminationRoutingEventBucketConfig", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_219131342484974920
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct EliminationRoutingEventRequest { pub id: String, pub params: String, pub labels: Vec<String>, pub config: Option<EliminationRoutingEventBucketConfig>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EliminationRoutingEventRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_4871959247497654320
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct CalContractScoreEventRequest { pub id: String, pub params: String, pub labels: Vec<String>, pub config: Option<ContractBasedRoutingConfig>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "CalContractScoreEventRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-377681954772869370
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct LabelWithScoreEventResponse { pub score: f64, pub label: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "LabelWithScoreEventResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6392104268469639104
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct CalSuccessRateEventResponse { pub labels_with_score: Vec<LabelWithScoreEventResponse>, pub routing_approach: RoutingApproach, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "CalSuccessRateEventResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6655900709679361556
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct RuleMigrationQuery { pub profile_id: common_utils::id_type::ProfileId, pub merchant_id: common_utils::id_type::MerchantId, pub limit: Option<u32>, pub offset: Option<u32>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RuleMigrationQuery", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7743814058551675244
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct RuleMigrationResult { pub success: Vec<RuleMigrationResponse>, pub errors: Vec<RuleMigrationError>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RuleMigrationResult", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-4784668690650339952
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct RuleMigrationResponse { pub profile_id: common_utils::id_type::ProfileId, pub euclid_algorithm_id: common_utils::id_type::RoutingId, pub decision_engine_algorithm_id: String, pub is_active_rule: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RuleMigrationResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1263102072075617221
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct RuleMigrationError { pub profile_id: common_utils::id_type::ProfileId, pub algorithm_id: common_utils::id_type::RoutingId, pub error: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RuleMigrationError", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5891479296224798164
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct RoutingEvaluateRequest { pub created_by: String, #[schema(value_type = Object)] ///Parameters that can be used in the routing evaluate request. ///eg: {"parameters": { /// "payment_method": {"type": "enum_variant", "value": "card"}, /// "payment_method_type": {"type": "enum_variant", "value": "credit"}, /// "amount": {"type": "number", "value": 10}, /// "currency": {"type": "str_value", "value": "INR"}, /// "authentication_type": {"type": "enum_variant", "value": "three_ds"}, /// "card_bin": {"type": "str_value", "value": "424242"}, /// "capture_method": {"type": "enum_variant", "value": "scheduled"}, /// "business_country": {"type": "str_value", "value": "IN"}, /// "billing_country": {"type": "str_value", "value": "IN"}, /// "business_label": {"type": "str_value", "value": "business_label"}, /// "setup_future_usage": {"type": "enum_variant", "value": "off_session"}, /// "card_network": {"type": "enum_variant", "value": "visa"}, /// "payment_type": {"type": "enum_variant", "value": "recurring_mandate"}, /// "mandate_type": {"type": "enum_variant", "value": "single_use"}, /// "mandate_acceptance_type": {"type": "enum_variant", "value": "online"}, /// "metadata":{"type": "metadata_variant", "value": {"key": "key1", "value": "value1"}} /// }} pub parameters: std::collections::HashMap<String, Option<ValueType>>, pub fallback_output: Vec<DeRoutableConnectorChoice>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RoutingEvaluateRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-4062239928050418485
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct RoutingEvaluateResponse { pub status: String, pub output: serde_json::Value, #[serde(deserialize_with = "deserialize_connector_choices")] pub evaluated_output: Vec<RoutableConnectorChoice>, #[serde(deserialize_with = "deserialize_connector_choices")] pub eligible_connectors: Vec<RoutableConnectorChoice>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RoutingEvaluateResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_8582458226283708729
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct DeRoutableConnectorChoice { pub gateway_name: RoutableConnectors, #[schema(value_type = String)] pub gateway_id: Option<common_utils::id_type::MerchantConnectorAccountId>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "DeRoutableConnectorChoice", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5526348521810121769
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct MetadataValue { pub key: String, pub value: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MetadataValue", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1040581744784210622
clm
struct
// hyperswitch/crates/api_models/src/routing.rs pub struct NumberComparison { pub comparison_type: ComparisonType, pub number: u64, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "NumberComparison", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_2178659614644690967
clm
struct
// hyperswitch/crates/api_models/src/health_check.rs pub struct RouterHealthCheckResponse { pub database: bool, pub redis: bool, #[serde(skip_serializing_if = "Option::is_none")] pub vault: Option<bool>, #[cfg(feature = "olap")] pub analytics: bool, #[cfg(feature = "olap")] pub opensearch: bool, pub outgoing_request: bool, #[cfg(feature = "dynamic_routing")] pub grpc_health_check: HealthCheckMap, #[cfg(feature = "dynamic_routing")] pub decision_engine: bool, pub unified_connector_service: Option<bool>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RouterHealthCheckResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1726840678607233752
clm
struct
// hyperswitch/crates/api_models/src/health_check.rs pub struct SchedulerHealthCheckResponse { pub database: bool, pub redis: bool, pub outgoing_request: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "SchedulerHealthCheckResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-1526573717341997328
clm
struct
// hyperswitch/crates/api_models/src/ephemeral_key.rs pub struct EphemeralKeyCreateRequest { /// Customer ID for which an ephemeral key must be created #[schema( min_length = 1, max_length = 64, value_type = String, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44" )] pub customer_id: id_type::CustomerId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EphemeralKeyCreateRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-791360237348048808
clm
struct
// hyperswitch/crates/api_models/src/ephemeral_key.rs pub struct ClientSecretCreateRequest { /// Resource ID for which a client secret must be created pub resource_id: ResourceId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ClientSecretCreateRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_4393365653549186
clm
struct
// hyperswitch/crates/api_models/src/ephemeral_key.rs pub struct ClientSecretResponse { /// Client Secret id #[schema(value_type = String, max_length = 32, min_length = 1)] pub id: id_type::ClientSecretId, /// resource_id to which this client secret belongs to #[schema(value_type = ResourceId)] pub resource_id: ResourceId, /// time at which this client secret was created pub created_at: time::PrimitiveDateTime, /// time at which this client secret would expire pub expires: time::PrimitiveDateTime, #[schema(value_type=String)] /// client secret pub secret: Secret<String>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ClientSecretResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5540439841369386248
clm
struct
// hyperswitch/crates/api_models/src/ephemeral_key.rs pub struct EphemeralKeyCreateResponse { /// customer_id to which this ephemeral key belongs to #[schema(value_type = String, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")] pub customer_id: id_type::CustomerId, /// time at which this ephemeral key was created pub created_at: i64, /// time at which this ephemeral key would expire pub expires: i64, /// ephemeral key pub secret: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EphemeralKeyCreateResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7258257708792935740
clm
struct
// hyperswitch/crates/api_models/src/mandates.rs pub struct MandateId { pub mandate_id: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MandateId", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_3517798496643843136
clm
struct
// hyperswitch/crates/api_models/src/mandates.rs pub struct MandateRevokedResponse { /// The identifier for mandate pub mandate_id: String, /// The status for mandates #[schema(value_type = MandateStatus)] pub status: api_enums::MandateStatus, /// If there was an error while calling the connectors the code is received here #[schema(example = "E0001")] pub error_code: Option<String>, /// If there was an error while calling the connector the error message is received here #[schema(example = "Failed while verifying the card")] pub error_message: Option<String>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MandateRevokedResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_7876730047113256552
clm
struct
// hyperswitch/crates/api_models/src/mandates.rs pub struct MandateResponse { /// The identifier for mandate pub mandate_id: String, /// The status for mandates #[schema(value_type = MandateStatus)] pub status: api_enums::MandateStatus, /// The identifier for payment method pub payment_method_id: String, /// The payment method pub payment_method: String, /// The payment method type pub payment_method_type: Option<String>, /// The card details for mandate pub card: Option<MandateCardDetails>, /// Details about the customer’s acceptance #[schema(value_type = Option<CustomerAcceptance>)] pub customer_acceptance: Option<common_payments_types::CustomerAcceptance>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MandateResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_570110049360490019
clm
struct
// hyperswitch/crates/api_models/src/feature_matrix.rs pub struct FeatureMatrixRequest { // List of connectors for which the feature matrix is requested #[schema(value_type = Option<Vec<Connector>>)] pub connectors: Option<Vec<common_enums::connector_enums::Connector>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "FeatureMatrixRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_4489765790432402506
clm
struct
// hyperswitch/crates/api_models/src/feature_matrix.rs pub struct CardSpecificFeatures { /// Indicates whether three_ds card payments are supported #[schema(value_type = FeatureStatus)] pub three_ds: common_enums::FeatureStatus, /// Indicates whether non three_ds card payments are supported #[schema(value_type = FeatureStatus)] pub no_three_ds: common_enums::FeatureStatus, /// List of supported card networks #[schema(value_type = Vec<CardNetwork>)] pub supported_card_networks: Vec<common_enums::CardNetwork>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "CardSpecificFeatures", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-1201376915925697137
clm
struct
// hyperswitch/crates/api_models/src/feature_matrix.rs pub struct SupportedPaymentMethod { /// The payment method supported by the connector #[schema(value_type = PaymentMethod)] pub payment_method: common_enums::PaymentMethod, /// The payment method type supported by the connector #[schema(value_type = PaymentMethodType)] pub payment_method_type: common_enums::PaymentMethodType, /// The display name of the payment method type pub payment_method_type_display_name: String, /// Indicates whether the payment method supports mandates via the connector #[schema(value_type = FeatureStatus)] pub mandates: common_enums::FeatureStatus, /// Indicates whether the payment method supports refunds via the connector #[schema(value_type = FeatureStatus)] pub refunds: common_enums::FeatureStatus, /// List of supported capture methods supported by the payment method type #[schema(value_type = Vec<CaptureMethod>)] pub supported_capture_methods: Vec<common_enums::CaptureMethod>, /// Information on the Payment method specific payment features #[serde(flatten)] pub payment_method_specific_features: Option<PaymentMethodSpecificFeatures>, /// List of countries supported by the payment method type via the connector #[schema(value_type = Option<HashSet<CountryAlpha3>>)] pub supported_countries: Option<HashSet<common_enums::CountryAlpha3>>, /// List of currencies supported by the payment method type via the connector #[schema(value_type = Option<HashSet<Currency>>)] pub supported_currencies: Option<HashSet<common_enums::Currency>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "SupportedPaymentMethod", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1676137975369247943
clm
struct
// hyperswitch/crates/api_models/src/feature_matrix.rs pub struct ConnectorFeatureMatrixResponse { /// The name of the connector pub name: String, /// The display name of the connector pub display_name: String, /// The description of the connector pub description: String, /// The category of the connector #[schema(value_type = HyperswitchConnectorCategory, example = "payment_gateway")] pub category: common_enums::HyperswitchConnectorCategory, /// The integration status of the connector #[schema(value_type = ConnectorIntegrationStatus, example = "live")] pub integration_status: common_enums::ConnectorIntegrationStatus, /// The list of payment methods supported by the connector pub supported_payment_methods: Option<Vec<SupportedPaymentMethod>>, /// The list of webhook flows supported by the connector #[schema(value_type = Option<Vec<EventClass>>)] pub supported_webhook_flows: Option<Vec<common_enums::EventClass>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ConnectorFeatureMatrixResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-3723401652773043744
clm
struct
// hyperswitch/crates/api_models/src/feature_matrix.rs pub struct FeatureMatrixListResponse { /// The number of connectors included in the response pub connector_count: usize, // The list of payments response objects pub connectors: Vec<ConnectorFeatureMatrixResponse>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "FeatureMatrixListResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7799035961466568620
clm
struct
// hyperswitch/crates/api_models/src/apple_pay_certificates_migration.rs pub struct ApplePayCertificatesMigrationResponse { pub migration_successful: Vec<common_utils::id_type::MerchantId>, pub migration_failed: Vec<common_utils::id_type::MerchantId>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ApplePayCertificatesMigrationResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5277892929464227556
clm
struct
// hyperswitch/crates/api_models/src/apple_pay_certificates_migration.rs pub struct ApplePayCertificatesMigrationRequest { pub merchant_ids: Vec<common_utils::id_type::MerchantId>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ApplePayCertificatesMigrationRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1865524202876606280
clm
struct
// hyperswitch/crates/api_models/src/three_ds_decision_rule.rs pub struct PaymentData { /// The amount of the payment in minor units (e.g., cents for USD). #[schema(value_type = i64)] pub amount: common_utils::types::MinorUnit, /// The currency of the payment. #[schema(value_type = Currency)] pub currency: common_enums::Currency, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "PaymentData", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-3739129830223285589
clm
struct
// hyperswitch/crates/api_models/src/three_ds_decision_rule.rs pub struct PaymentMethodMetaData { /// The card network (e.g., Visa, Mastercard) if the payment method is a card. #[schema(value_type = CardNetwork)] pub card_network: Option<common_enums::CardNetwork>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "PaymentMethodMetaData", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-6379631748702931220
clm
struct
// hyperswitch/crates/api_models/src/three_ds_decision_rule.rs pub struct CustomerDeviceData { /// The platform of the customer's device (e.g., Web, Android, iOS). pub platform: Option<CustomerDevicePlatform>, /// The type of the customer's device (e.g., Mobile, Tablet, Desktop). pub device_type: Option<CustomerDeviceType>, /// The display size of the customer's device. pub display_size: Option<CustomerDeviceDisplaySize>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "CustomerDeviceData", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6944653507185497300
clm
struct
// hyperswitch/crates/api_models/src/three_ds_decision_rule.rs pub struct IssuerData { /// The name of the issuer. pub name: Option<String>, /// The country of the issuer. #[schema(value_type = Country)] pub country: Option<common_enums::Country>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "IssuerData", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5431022201734034072
clm
struct
// hyperswitch/crates/api_models/src/three_ds_decision_rule.rs pub struct AcquirerData { /// The country of the acquirer. #[schema(value_type = Country)] pub country: Option<common_enums::Country>, /// The fraud rate associated with the acquirer. pub fraud_rate: Option<f64>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "AcquirerData", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-6494310039791781802
clm
struct
// hyperswitch/crates/api_models/src/three_ds_decision_rule.rs pub struct ThreeDsDecisionRuleExecuteRequest { /// The ID of the routing algorithm to be executed. #[schema(value_type = String)] pub routing_id: common_utils::id_type::RoutingId, /// Data related to the payment. pub payment: PaymentData, /// Optional metadata about the payment method. pub payment_method: Option<PaymentMethodMetaData>, /// Optional data about the customer's device. pub customer_device: Option<CustomerDeviceData>, /// Optional data about the issuer. pub issuer: Option<IssuerData>, /// Optional data about the acquirer. pub acquirer: Option<AcquirerData>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ThreeDsDecisionRuleExecuteRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-720743076921255496
clm
struct
// hyperswitch/crates/api_models/src/three_ds_decision_rule.rs pub struct ThreeDsDecisionRuleExecuteResponse { /// The decision made by the 3DS decision rule engine. #[schema(value_type = ThreeDSDecision)] pub decision: common_types::three_ds_decision_rule_engine::ThreeDSDecision, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ThreeDsDecisionRuleExecuteResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7591140435402666897
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct EventListConstraints { /// Filter events created after the specified time. #[serde(default, with = "common_utils::custom_serde::iso8601::option")] pub created_after: Option<PrimitiveDateTime>, /// Filter events created before the specified time. #[serde(default, with = "common_utils::custom_serde::iso8601::option")] pub created_before: Option<PrimitiveDateTime>, /// Include at most the specified number of events. pub limit: Option<u16>, /// Include events after the specified offset. pub offset: Option<u16>, /// Filter all events associated with the specified object identifier (Payment Intent ID, /// Refund ID, etc.) pub object_id: Option<String>, /// Filter all events associated with the specified business profile ID. #[schema(value_type = Option<String>)] pub profile_id: Option<common_utils::id_type::ProfileId>, /// Filter events by their class. pub event_classes: Option<HashSet<EventClass>>, /// Filter events by their type. pub event_types: Option<HashSet<EventType>>, /// Filter all events by `is_overall_delivery_successful` field of the event. pub is_delivered: Option<bool>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EventListConstraints", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-8954470531722172621
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct EventListItemResponse { /// The identifier for the Event. #[schema(max_length = 64, example = "evt_018e31720d1b7a2b82677d3032cab959")] pub event_id: String, /// The identifier for the Merchant Account. #[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: common_utils::id_type::MerchantId, /// The identifier for the Business Profile. #[schema(max_length = 64, value_type = String, example = "SqB0zwDGR5wHppWf0bx7GKr1f2")] pub profile_id: common_utils::id_type::ProfileId, /// The identifier for the object (Payment Intent ID, Refund ID, etc.) #[schema(max_length = 64, example = "QHrfd5LUDdZaKtAjdJmMu0dMa1")] pub object_id: String, /// Specifies the type of event, which includes the object and its status. pub event_type: EventType, /// Specifies the class of event (the type of object: Payment, Refund, etc.) pub event_class: EventClass, /// Indicates whether the webhook was ultimately delivered or not. pub is_delivery_successful: Option<bool>, /// The identifier for the initial delivery attempt. This will be the same as `event_id` for /// the initial delivery attempt. #[schema(max_length = 64, example = "evt_018e31720d1b7a2b82677d3032cab959")] pub initial_attempt_id: String, /// Time at which the event was created. #[schema(example = "2022-09-10T10:11:12Z")] #[serde(with = "common_utils::custom_serde::iso8601")] pub created: PrimitiveDateTime, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EventListItemResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-6839631446409257426
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct TotalEventsResponse { /// The list of events pub events: Vec<EventListItemResponse>, /// Count of total events pub total_count: i64, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "TotalEventsResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-1383126908459896024
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct EventRetrieveResponse { #[serde(flatten)] pub event_information: EventListItemResponse, /// The request information (headers and body) sent in the webhook. pub request: OutgoingWebhookRequestContent, /// The response information (headers, body and status code) received for the webhook sent. pub response: OutgoingWebhookResponseContent, /// Indicates the type of delivery attempt. pub delivery_attempt: Option<WebhookDeliveryAttempt>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EventRetrieveResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_2964308086689663758
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct OutgoingWebhookRequestContent { /// The request body sent in the webhook. #[schema(value_type = String)] #[serde(alias = "payload")] pub body: Secret<String>, /// The request headers sent in the webhook. #[schema( value_type = Vec<(String, String)>, example = json!([["content-type", "application/json"], ["content-length", "1024"]])) ] pub headers: Vec<(String, Secret<String>)>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "OutgoingWebhookRequestContent", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6078380615924703620
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct OutgoingWebhookResponseContent { /// The response body received for the webhook sent. #[schema(value_type = Option<String>)] #[serde(alias = "payload")] pub body: Option<Secret<String>>, /// The response headers received for the webhook sent. #[schema( value_type = Option<Vec<(String, String)>>, example = json!([["content-type", "application/json"], ["content-length", "1024"]])) ] pub headers: Option<Vec<(String, Secret<String>)>>, /// The HTTP status code for the webhook sent. #[schema(example = 200)] pub status_code: Option<u16>, /// Error message in case any error occurred when trying to deliver the webhook. #[schema(example = 200)] pub error_message: Option<String>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "OutgoingWebhookResponseContent", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-1080828214787034982
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct EventListRequestInternal { pub merchant_id: common_utils::id_type::MerchantId, pub constraints: EventListConstraints, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "EventListRequestInternal", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7114013905994867104
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct WebhookDeliveryAttemptListRequestInternal { pub merchant_id: common_utils::id_type::MerchantId, pub initial_attempt_id: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "WebhookDeliveryAttemptListRequestInternal", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-6289150647430747535
clm
struct
// hyperswitch/crates/api_models/src/webhook_events.rs pub struct WebhookDeliveryRetryRequestInternal { pub merchant_id: common_utils::id_type::MerchantId, pub event_id: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "WebhookDeliveryRetryRequestInternal", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_8791124226232430190
clm
struct
// hyperswitch/crates/api_models/src/relay.rs pub struct RelayRequest { /// The identifier that is associated to a resource at the connector reference to which the relay request is being made #[schema(example = "7256228702616471803954")] pub connector_resource_id: String, /// Identifier of the connector ( merchant connector account ) which was chosen to make the payment #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub connector_id: common_utils::id_type::MerchantConnectorAccountId, /// The type of relay request #[serde(rename = "type")] #[schema(value_type = RelayType)] pub relay_type: api_enums::RelayType, /// The data that is associated with the relay request pub data: Option<RelayData>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RelayRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-1048880464615814681
clm
struct
// hyperswitch/crates/api_models/src/relay.rs pub struct RelayRefundRequestData { /// The amount that is being refunded #[schema(value_type = i64 , example = 6540)] pub amount: MinorUnit, /// The currency in which the amount is being refunded #[schema(value_type = Currency)] pub currency: api_enums::Currency, /// The reason for the refund #[schema(max_length = 255, example = "Customer returned the product")] pub reason: Option<String>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RelayRefundRequestData", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-3382935283720769893
clm
struct
// hyperswitch/crates/api_models/src/relay.rs pub struct RelayResponse { /// The unique identifier for the Relay #[schema(example = "relay_mbabizu24mvu3mela5njyhpit4", value_type = String)] pub id: common_utils::id_type::RelayId, /// The status of the relay request #[schema(value_type = RelayStatus)] pub status: api_enums::RelayStatus, /// The identifier that is associated to a resource at the connector reference to which the relay request is being made #[schema(example = "pi_3MKEivSFNglxLpam0ZaL98q9")] pub connector_resource_id: String, /// The error details if the relay request failed pub error: Option<RelayError>, /// The identifier that is associated to a resource at the connector to which the relay request is being made #[schema(example = "re_3QY4TnEOqOywnAIx1Mm1p7GQ")] pub connector_reference_id: Option<String>, /// Identifier of the connector ( merchant connector account ) which was chosen to make the payment #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub connector_id: common_utils::id_type::MerchantConnectorAccountId, /// The business profile that is associated with this relay request. #[schema(example = "pro_abcdefghijklmnopqrstuvwxyz", value_type = String)] pub profile_id: common_utils::id_type::ProfileId, /// The type of relay request #[serde(rename = "type")] #[schema(value_type = RelayType)] pub relay_type: api_enums::RelayType, /// The data that is associated with the relay request pub data: Option<RelayData>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RelayResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7623684322049663391
clm
struct
// hyperswitch/crates/api_models/src/relay.rs pub struct RelayError { /// The error code pub code: String, /// The error message pub message: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RelayError", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_3785244679825761228
clm
struct
// hyperswitch/crates/api_models/src/relay.rs pub struct RelayRetrieveRequest { /// The unique identifier for the Relay #[serde(default)] pub force_sync: bool, /// The unique identifier for the Relay pub id: common_utils::id_type::RelayId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RelayRetrieveRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5568648879322864345
clm
struct
// hyperswitch/crates/api_models/src/relay.rs pub struct RelayRetrieveBody { /// The unique identifier for the Relay #[serde(default)] pub force_sync: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "RelayRetrieveBody", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-8707193731867894585
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountListRequest { pub organization_id: id_type::OrganizationId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountListRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-4560501672202895348
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountCreate { /// The identifier for the Merchant Account #[schema(value_type = String, max_length = 64, min_length = 1, example = "y3oqhf46pyzuxjbcn2giaqnb44")] pub merchant_id: id_type::MerchantId, /// Name of the Merchant Account #[schema(value_type= Option<String>,example = "NewAge Retailer")] pub merchant_name: Option<Secret<String>>, /// Details about the merchant, can contain phone and emails of primary and secondary contact person pub merchant_details: Option<MerchantDetails>, /// The URL to redirect after the completion of the operation #[schema(value_type = Option<String>, max_length = 255, example = "https://www.example.com/success")] pub return_url: Option<url::Url>, /// Webhook related details pub webhook_details: Option<WebhookDetails>, /// The routing algorithm to be used for routing payments to desired connectors #[serde(skip)] #[schema(deprecated)] pub routing_algorithm: Option<serde_json::Value>, /// The routing algorithm to be used for routing payouts to desired connectors #[cfg(feature = "payouts")] #[schema(value_type = Option<StaticRoutingAlgorithm>,example = json!({"type": "single", "data": "wise"}))] pub payout_routing_algorithm: Option<serde_json::Value>, /// A boolean value to indicate if the merchant is a sub-merchant under a master or a parent merchant. By default, its value is false. #[schema(default = false, example = false)] pub sub_merchants_enabled: Option<bool>, /// Refers to the Parent Merchant ID if the merchant being created is a sub-merchant #[schema(max_length = 255, example = "xkkdf909012sdjki2dkh5sdf", value_type = Option<String>)] pub parent_merchant_id: Option<id_type::MerchantId>, /// A boolean value to indicate if payment response hash needs to be enabled #[schema(default = false, example = true)] pub enable_payment_response_hash: Option<bool>, /// Refers to the hash key used for calculating the signature for webhooks and redirect response. If the value is not provided, a value is automatically generated. pub payment_response_hash_key: Option<String>, /// A boolean value to indicate if redirect to merchant with http post needs to be enabled. #[schema(default = false, example = true)] pub redirect_to_merchant_with_http_post: Option<bool>, /// Metadata is useful for storing additional, unstructured information on an object #[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)] pub metadata: Option<MerchantAccountMetadata>, /// API key that will be used for client side API access. A publishable key has to be always paired with a `client_secret`. /// A `client_secret` can be obtained by creating a payment with `confirm` set to false #[schema(example = "AH3423bkjbkjdsfbkj")] pub publishable_key: Option<String>, /// An identifier for the vault used to store payment method information. #[schema(example = "locker_abc123")] pub locker_id: Option<String>, /// Details about the primary business unit of the merchant account #[schema(value_type = Option<PrimaryBusinessDetails>)] pub primary_business_details: Option<Vec<PrimaryBusinessDetails>>, /// The frm routing algorithm to be used for routing payments to desired FRM's #[schema(value_type = Option<Object>,example = json!({"type": "single", "data": "signifyd"}))] pub frm_routing_algorithm: Option<serde_json::Value>, /// The id of the organization to which the merchant belongs to, if not passed an organization is created #[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "org_q98uSGAYbjEwqs0mJwnz")] pub organization_id: Option<id_type::OrganizationId>, /// Default payment method collect link config #[schema(value_type = Option<BusinessCollectLinkConfig>)] pub pm_collect_link_config: Option<BusinessCollectLinkConfig>, /// Product Type of this merchant account #[schema(value_type = Option<MerchantProductType>, example = "Orchestration")] pub product_type: Option<api_enums::MerchantProductType>, /// Merchant Account Type of this merchant account #[schema(value_type = Option<MerchantAccountRequestType>, example = "standard")] pub merchant_account_type: Option<api_enums::MerchantAccountRequestType>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountCreate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1815834546656761487
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountCreateWithoutOrgId { /// Name of the Merchant Account, This will be used as a prefix to generate the id #[schema(value_type= String, max_length = 64, example = "NewAge Retailer")] pub merchant_name: Secret<common_utils::new_type::MerchantName>, /// Details about the merchant, contains phone and emails of primary and secondary contact person. pub merchant_details: Option<MerchantDetails>, /// Metadata is useful for storing additional, unstructured information about the merchant account. #[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)] pub metadata: Option<pii::SecretSerdeValue>, #[schema(value_type = Option<MerchantProductType>)] pub product_type: Option<api_enums::MerchantProductType>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountCreateWithoutOrgId", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-4560501672202895348
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountCreate { pub merchant_name: Secret<common_utils::new_type::MerchantName>, pub merchant_details: Option<MerchantDetails>, pub metadata: Option<pii::SecretSerdeValue>, pub organization_id: id_type::OrganizationId, /// Product Type of this merchant account #[schema(value_type = Option<MerchantProductType>)] pub product_type: Option<api_enums::MerchantProductType>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountCreate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_4769844814437311283
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct CardTestingGuardConfig { /// Determines if Card IP Blocking is enabled for profile pub card_ip_blocking_status: CardTestingGuardStatus, /// Determines the unsuccessful payment threshold for Card IP Blocking for profile pub card_ip_blocking_threshold: i32, /// Determines if Guest User Card Blocking is enabled for profile pub guest_user_card_blocking_status: CardTestingGuardStatus, /// Determines the unsuccessful payment threshold for Guest User Card Blocking for profile pub guest_user_card_blocking_threshold: i32, /// Determines if Customer Id Blocking is enabled for profile pub customer_id_blocking_status: CardTestingGuardStatus, /// Determines the unsuccessful payment threshold for Customer Id Blocking for profile pub customer_id_blocking_threshold: i32, /// Determines Redis Expiry for Card Testing Guard for profile pub card_testing_guard_expiry: i32, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "CardTestingGuardConfig", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_4324037913547806714
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct AuthenticationConnectorDetails { /// List of authentication connectors #[schema(value_type = Vec<AuthenticationConnectors>)] pub authentication_connectors: Vec<common_enums::AuthenticationConnectors>, /// URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. pub three_ds_requestor_url: String, /// Merchant app declaring their URL within the CReq message so that the Authentication app can call the Merchant app after OOB authentication has occurred. pub three_ds_requestor_app_url: Option<String>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "AuthenticationConnectorDetails", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_2521878795384573081
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct ExternalVaultConnectorDetails { /// Merchant Connector id to be stored for vault connector #[schema(value_type = Option<String>)] pub vault_connector_id: id_type::MerchantConnectorAccountId, /// External vault to be used for storing payment method information #[schema(value_type = Option<VaultSdk>)] pub vault_sdk: Option<common_enums::VaultSdk>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ExternalVaultConnectorDetails", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-8760171898801983875
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountMetadata { pub compatible_connector: Option<api_enums::Connector>, #[serde(flatten)] pub data: Option<pii::SecretSerdeValue>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountMetadata", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_3031288754190865118
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountUpdate { /// The identifier for the Merchant Account #[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// Name of the Merchant Account #[schema(example = "NewAge Retailer")] pub merchant_name: Option<String>, /// Details about the merchant pub merchant_details: Option<MerchantDetails>, /// The URL to redirect after the completion of the operation #[schema(value_type = Option<String>, max_length = 255, example = "https://www.example.com/success")] pub return_url: Option<url::Url>, /// Webhook related details pub webhook_details: Option<WebhookDetails>, /// The routing algorithm to be used for routing payments to desired connectors #[serde(skip)] #[schema(deprecated)] pub routing_algorithm: Option<serde_json::Value>, /// The routing algorithm to be used to process the incoming request from merchant to outgoing payment processor or payment method. The default is 'Custom' #[cfg(feature = "payouts")] #[schema(value_type = Option<StaticRoutingAlgorithm>,example = json!({"type": "single", "data": "wise"}))] pub payout_routing_algorithm: Option<serde_json::Value>, /// A boolean value to indicate if the merchant is a sub-merchant under a master or a parent merchant. By default, its value is false. #[schema(default = false, example = false)] pub sub_merchants_enabled: Option<bool>, /// Refers to the Parent Merchant ID if the merchant being created is a sub-merchant #[schema(max_length = 255, example = "xkkdf909012sdjki2dkh5sdf", value_type = Option<String>)] pub parent_merchant_id: Option<id_type::MerchantId>, /// A boolean value to indicate if payment response hash needs to be enabled #[schema(default = false, example = true)] pub enable_payment_response_hash: Option<bool>, /// Refers to the hash key used for calculating the signature for webhooks and redirect response. pub payment_response_hash_key: Option<String>, /// A boolean value to indicate if redirect to merchant with http post needs to be enabled #[schema(default = false, example = true)] pub redirect_to_merchant_with_http_post: Option<bool>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)] pub metadata: Option<pii::SecretSerdeValue>, /// API key that will be used for server side API access #[schema(example = "AH3423bkjbkjdsfbkj")] pub publishable_key: Option<String>, /// An identifier for the vault used to store payment method information. #[schema(example = "locker_abc123")] pub locker_id: Option<String>, /// Details about the primary business unit of the merchant account pub primary_business_details: Option<Vec<PrimaryBusinessDetails>>, /// The frm routing algorithm to be used for routing payments to desired FRM's #[schema(value_type = Option<Object>,example = json!({"type": "single", "data": "signifyd"}))] pub frm_routing_algorithm: Option<serde_json::Value>, /// The default profile that must be used for creating merchant accounts and payments #[schema(max_length = 64, value_type = Option<String>)] pub default_profile: Option<id_type::ProfileId>, /// Default payment method collect link config #[schema(value_type = Option<BusinessCollectLinkConfig>)] pub pm_collect_link_config: Option<BusinessCollectLinkConfig>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountUpdate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_3031288754190865118
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountUpdate { /// Name of the Merchant Account #[schema(example = "NewAge Retailer")] pub merchant_name: Option<String>, /// Details about the merchant pub merchant_details: Option<MerchantDetails>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)] pub metadata: Option<pii::SecretSerdeValue>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountUpdate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7669192702272070870
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountResponse { /// The identifier for the Merchant Account #[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// Name of the Merchant Account #[schema(value_type = Option<String>,example = "NewAge Retailer")] pub merchant_name: OptionalEncryptableName, /// The URL to redirect after completion of the payment #[schema(max_length = 255, example = "https://www.example.com/success")] pub return_url: Option<String>, /// A boolean value to indicate if payment response hash needs to be enabled #[schema(default = false, example = true)] pub enable_payment_response_hash: bool, /// Refers to the hash key used for calculating the signature for webhooks and redirect response. If the value is not provided, a value is automatically generated. #[schema(max_length = 255, example = "xkkdf909012sdjki2dkh5sdf")] pub payment_response_hash_key: Option<String>, /// A boolean value to indicate if redirect to merchant with http post needs to be enabled #[schema(default = false, example = true)] pub redirect_to_merchant_with_http_post: bool, /// Details about the merchant #[schema(value_type = Option<MerchantDetails>)] pub merchant_details: Option<Encryptable<pii::SecretSerdeValue>>, /// Webhook related details pub webhook_details: Option<WebhookDetails>, /// The routing algorithm to be used to process the incoming request from merchant to outgoing payment processor or payment method. The default is 'Custom' #[serde(skip)] #[schema(deprecated)] pub routing_algorithm: Option<serde_json::Value>, /// The routing algorithm to be used to process the incoming request from merchant to outgoing payment processor or payment method. The default is 'Custom' #[cfg(feature = "payouts")] #[schema(value_type = Option<StaticRoutingAlgorithm>,example = json!({"type": "single", "data": "wise"}))] pub payout_routing_algorithm: Option<serde_json::Value>, /// A boolean value to indicate if the merchant is a sub-merchant under a master or a parent merchant. By default, its value is false. #[schema(default = false, example = false)] pub sub_merchants_enabled: Option<bool>, /// Refers to the Parent Merchant ID if the merchant being created is a sub-merchant #[schema(max_length = 255, example = "xkkdf909012sdjki2dkh5sdf", value_type = Option<String>)] pub parent_merchant_id: Option<id_type::MerchantId>, /// API key that will be used for server side API access #[schema(example = "AH3423bkjbkjdsfbkj")] pub publishable_key: Option<String>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)] pub metadata: Option<pii::SecretSerdeValue>, /// An identifier for the vault used to store payment method information. #[schema(example = "locker_abc123")] pub locker_id: Option<String>, /// Details about the primary business unit of the merchant account #[schema(value_type = Vec<PrimaryBusinessDetails>)] pub primary_business_details: Vec<PrimaryBusinessDetails>, /// The frm routing algorithm to be used to process the incoming request from merchant to outgoing payment FRM. #[schema(value_type = Option<StaticRoutingAlgorithm>, max_length = 255, example = r#"{"type": "single", "data": "stripe" }"#)] pub frm_routing_algorithm: Option<serde_json::Value>, /// The organization id merchant is associated with #[schema(value_type = String, max_length = 64, min_length = 1, example = "org_q98uSGAYbjEwqs0mJwnz")] pub organization_id: id_type::OrganizationId, /// A boolean value to indicate if the merchant has recon service is enabled or not, by default value is false pub is_recon_enabled: bool, /// The default profile that must be used for creating merchant accounts and payments #[schema(max_length = 64, value_type = Option<String>)] pub default_profile: Option<id_type::ProfileId>, /// Used to indicate the status of the recon module for a merchant account #[schema(value_type = ReconStatus, example = "not_requested")] pub recon_status: api_enums::ReconStatus, /// Default payment method collect link config #[schema(value_type = Option<BusinessCollectLinkConfig>)] pub pm_collect_link_config: Option<BusinessCollectLinkConfig>, /// Product Type of this merchant account #[schema(value_type = Option<MerchantProductType>, example = "Orchestration")] pub product_type: Option<api_enums::MerchantProductType>, /// Merchant Account Type of this merchant account #[schema(value_type = MerchantAccountType, example = "standard")] pub merchant_account_type: api_enums::MerchantAccountType, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-7669192702272070870
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountResponse { /// The identifier for the Merchant Account #[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub id: id_type::MerchantId, /// Name of the Merchant Account #[schema(value_type = String,example = "NewAge Retailer")] pub merchant_name: Secret<String>, /// Details about the merchant #[schema(value_type = Option<MerchantDetails>)] pub merchant_details: Option<Encryptable<pii::SecretSerdeValue>>, /// API key that will be used for server side API access #[schema(example = "AH3423bkjbkjdsfbkj")] pub publishable_key: String, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)] pub metadata: Option<pii::SecretSerdeValue>, /// The id of the organization which the merchant is associated with #[schema(value_type = String, max_length = 64, min_length = 1, example = "org_q98uSGAYbjEwqs0mJwnz")] pub organization_id: id_type::OrganizationId, /// Used to indicate the status of the recon module for a merchant account #[schema(value_type = ReconStatus, example = "not_requested")] pub recon_status: api_enums::ReconStatus, /// Product Type of this merchant account #[schema(value_type = Option<MerchantProductType>, example = "Orchestration")] pub product_type: Option<api_enums::MerchantProductType>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_3902238003590142986
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantDetails { /// The merchant's primary contact name #[schema(value_type = Option<String>, max_length = 255, example = "John Doe")] pub primary_contact_person: Option<Secret<String>>, /// The merchant's primary phone number #[schema(value_type = Option<String>, max_length = 255, example = "999999999")] pub primary_phone: Option<Secret<String>>, /// The merchant's primary email address #[schema(value_type = Option<String>, max_length = 255, example = "johndoe@test.com")] pub primary_email: Option<pii::Email>, /// The merchant's secondary contact name #[schema(value_type = Option<String>, max_length= 255, example = "John Doe2")] pub secondary_contact_person: Option<Secret<String>>, /// The merchant's secondary phone number #[schema(value_type = Option<String>, max_length = 255, example = "999999988")] pub secondary_phone: Option<Secret<String>>, /// The merchant's secondary email address #[schema(value_type = Option<String>, max_length = 255, example = "johndoe2@test.com")] pub secondary_email: Option<pii::Email>, /// The business website of the merchant #[schema(max_length = 255, example = "www.example.com")] pub website: Option<String>, /// A brief description about merchant's business #[schema( max_length = 255, example = "Online Retail with a wide selection of organic products for North America" )] pub about_business: Option<String>, /// The merchant's address details pub address: Option<AddressDetails>, #[schema(value_type = Option<String>, example = "123456789")] pub merchant_tax_registration_id: Option<Secret<String>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantDetails", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_3104130839885982669
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct PrimaryBusinessDetails { #[schema(value_type = CountryAlpha2)] pub country: api_enums::CountryAlpha2, #[schema(example = "food")] pub business: String, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "PrimaryBusinessDetails", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_7564417814221541835
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct WebhookDetails { ///The version for Webhook #[schema(max_length = 255, max_length = 255, example = "1.0.2")] pub webhook_version: Option<String>, ///The user name for Webhook login #[schema(max_length = 255, max_length = 255, example = "ekart_retail")] pub webhook_username: Option<String>, ///The password for Webhook login #[schema(value_type = Option<String>, max_length = 255, example = "ekart@123")] pub webhook_password: Option<Secret<String>>, ///The url for the webhook endpoint #[schema(value_type = Option<String>, example = "www.ekart.com/webhooks")] pub webhook_url: Option<Secret<String>>, /// If this property is true, a webhook message is posted whenever a new payment is created #[schema(example = true)] pub payment_created_enabled: Option<bool>, /// If this property is true, a webhook message is posted whenever a payment is successful #[schema(example = true)] pub payment_succeeded_enabled: Option<bool>, /// If this property is true, a webhook message is posted whenever a payment fails #[schema(example = true)] pub payment_failed_enabled: Option<bool>, /// List of payment statuses that triggers a webhook for payment intents #[schema(value_type = Vec<IntentStatus>, example = json!(["succeeded", "failed", "partially_captured", "requires_merchant_action"]))] pub payment_statuses_enabled: Option<Vec<api_enums::IntentStatus>>, /// List of refund statuses that triggers a webhook for refunds #[schema(value_type = Vec<IntentStatus>, example = json!(["success", "failure"]))] pub refund_statuses_enabled: Option<Vec<api_enums::RefundStatus>>, /// List of payout statuses that triggers a webhook for payouts #[cfg(feature = "payouts")] #[schema(value_type = Option<Vec<PayoutStatus>>, example = json!(["success", "failed"]))] pub payout_statuses_enabled: Option<Vec<api_enums::PayoutStatus>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "WebhookDetails", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-2321883283873966806
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantAccountDeleteResponse { /// The identifier for the Merchant Account #[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// If the connector is deleted or not #[schema(example = false)] pub deleted: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantAccountDeleteResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_3655720057758252822
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantId { pub merchant_id: id_type::MerchantId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantId", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-494171054830641978
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorId { #[schema(value_type = String)] pub merchant_id: id_type::MerchantId, #[schema(value_type = String)] pub merchant_connector_id: id_type::MerchantConnectorAccountId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorId", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-494171054830641978
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorId { #[schema(value_type = String)] pub id: id_type::MerchantConnectorAccountId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorId", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-6946847950209381522
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorCreate { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(value_type = Connector, example = "stripe")] pub connector_name: api_enums::Connector, /// This is an unique label you can generate and pass in order to identify this connector account on your Hyperswitch dashboard and reports, If not passed then if will take `connector_name`_`profile_name`. Eg: if your profile label is `default`, connector label can be `stripe_default` #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// Identifier for the profile, if not provided default will be chosen from merchant account #[schema(max_length = 64, value_type = String)] pub profile_id: id_type::ProfileId, /// An object containing the required details/credentials for a Connector account. #[schema(value_type = Option<MerchantConnectorDetails>,example = json!({ "auth_type": "HeaderKey","api_key": "Basic MyVerySecretApiKey" }))] pub connector_account_details: Option<pii::SecretSerdeValue>, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(value_type = PaymentMethodsEnabled)] pub payment_methods_enabled: Option<Vec<common_types::payment_methods::PaymentMethodsEnabled>>, /// Webhook details of this merchant connector #[schema(example = json!({ "connector_webhook_details": { "merchant_secret": "1234567890987654321" } }))] pub connector_webhook_details: Option<MerchantConnectorWebhookDetails>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>,max_length = 255,example = json!({ "city": "NY", "unit": "245" }))] pub metadata: Option<pii::SecretSerdeValue>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// pm_auth_config will relate MCA records to their respective chosen auth services, based on payment_method and pmt #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = Option<ConnectorStatus>, example = "inactive")] // By default the ConnectorStatus is Active pub status: Option<api_enums::ConnectorStatus>, /// In case the merchant needs to store any additional sensitive data #[schema(value_type = Option<AdditionalMerchantData>)] pub additional_merchant_data: Option<AdditionalMerchantData>, /// The connector_wallets_details is used to store wallet details such as certificates and wallet credentials #[schema(value_type = Option<ConnectorWalletDetails>)] pub connector_wallets_details: Option<ConnectorWalletDetails>, /// Additional data that might be required by hyperswitch, to enable some specific features. #[schema(value_type = Option<MerchantConnectorAccountFeatureMetadata>)] pub feature_metadata: Option<MerchantConnectorAccountFeatureMetadata>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorCreate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-6946847950209381522
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorCreate { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(value_type = Connector, example = "stripe")] pub connector_name: api_enums::Connector, /// This is an unique label you can generate and pass in order to identify this connector account on your Hyperswitch dashboard and reports. Eg: if your profile label is `default`, connector label can be `stripe_default` #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// Identifier for the profile, if not provided default will be chosen from merchant account #[schema(max_length = 64, value_type = Option<String>)] pub profile_id: Option<id_type::ProfileId>, /// An object containing the required details/credentials for a Connector account. #[schema(value_type = Option<MerchantConnectorDetails>,example = json!({ "auth_type": "HeaderKey","api_key": "Basic MyVerySecretApiKey" }))] pub connector_account_details: Option<pii::SecretSerdeValue>, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(example = json!([ { "payment_method": "wallet", "payment_method_types": [ "upi_collect", "upi_intent" ], "payment_method_issuers": [ "labore magna ipsum", "aute" ], "payment_schemes": [ "Discover", "Discover" ], "accepted_currencies": { "type": "enable_only", "list": ["USD", "EUR"] }, "accepted_countries": { "type": "disable_only", "list": ["FR", "DE","IN"] }, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ]))] pub payment_methods_enabled: Option<Vec<PaymentMethodsEnabled>>, /// Webhook details of this merchant connector #[schema(example = json!({ "connector_webhook_details": { "merchant_secret": "1234567890987654321" } }))] pub connector_webhook_details: Option<MerchantConnectorWebhookDetails>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>,max_length = 255,example = json!({ "city": "NY", "unit": "245" }))] pub metadata: Option<pii::SecretSerdeValue>, /// A boolean value to indicate if the connector is in Test mode. By default, its value is false. #[schema(default = false, example = false)] pub test_mode: Option<bool>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// The business country to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(value_type = Option<CountryAlpha2>, example = "US")] pub business_country: Option<api_enums::CountryAlpha2>, /// The business label to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead pub business_label: Option<String>, /// The business sublabel to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(example = "chase")] pub business_sub_label: Option<String>, /// Unique ID of the connector #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = Option<String>)] pub merchant_connector_id: Option<id_type::MerchantConnectorAccountId>, #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = Option<ConnectorStatus>, example = "inactive")] pub status: Option<api_enums::ConnectorStatus>, /// In case the merchant needs to store any additional sensitive data #[schema(value_type = Option<AdditionalMerchantData>)] pub additional_merchant_data: Option<AdditionalMerchantData>, /// The connector_wallets_details is used to store wallet details such as certificates and wallet credentials #[schema(value_type = Option<ConnectorWalletDetails>)] pub connector_wallets_details: Option<ConnectorWalletDetails>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorCreate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_4424887024601865525
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorWebhookDetails { #[schema(value_type = String, example = "12345678900987654321")] pub merchant_secret: Secret<String>, #[schema(value_type = String, example = "12345678900987654321")] pub additional_secret: Option<Secret<String>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorWebhookDetails", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5607815691951052815
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorInfo { pub connector_label: String, #[schema(value_type = String)] pub merchant_connector_id: id_type::MerchantConnectorAccountId, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorInfo", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6701288280220380130
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorResponse { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(value_type = Connector, example = "stripe")] pub connector_name: common_enums::connector_enums::Connector, /// A unique label to identify the connector account created under a profile #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// Unique ID of the merchant connector account #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub id: id_type::MerchantConnectorAccountId, /// Identifier for the profile, if not provided default will be chosen from merchant account #[schema(max_length = 64, value_type = String)] pub profile_id: id_type::ProfileId, /// An object containing the required details/credentials for a Connector account. #[schema(value_type = Option<MerchantConnectorDetails>,example = json!({ "auth_type": "HeaderKey","api_key": "Basic MyVerySecretApiKey" }))] pub connector_account_details: pii::SecretSerdeValue, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(value_type = Vec<PaymentMethodsEnabled>)] pub payment_methods_enabled: Option<Vec<common_types::payment_methods::PaymentMethodsEnabled>>, /// Webhook details of this merchant connector #[schema(example = json!({ "connector_webhook_details": { "merchant_secret": "1234567890987654321" } }))] pub connector_webhook_details: Option<MerchantConnectorWebhookDetails>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>,max_length = 255,example = json!({ "city": "NY", "unit": "245" }))] pub metadata: Option<pii::SecretSerdeValue>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// identifier for the verified domains of a particular connector account pub applepay_verified_domains: Option<Vec<String>>, /// pm_auth_config will relate MCA records to their respective chosen auth services, based on payment_method and pmt #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = ConnectorStatus, example = "inactive")] pub status: api_enums::ConnectorStatus, #[schema(value_type = Option<AdditionalMerchantData>)] pub additional_merchant_data: Option<AdditionalMerchantData>, /// The connector_wallets_details is used to store wallet details such as certificates and wallet credentials #[schema(value_type = Option<ConnectorWalletDetails>)] pub connector_wallets_details: Option<ConnectorWalletDetails>, /// Additional data that might be required by hyperswitch, to enable some specific features. #[schema(value_type = Option<MerchantConnectorAccountFeatureMetadata>)] pub feature_metadata: Option<MerchantConnectorAccountFeatureMetadata>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6701288280220380130
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorResponse { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(value_type = Connector, example = "stripe")] pub connector_name: String, /// A unique label to identify the connector account created under a profile #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// Unique ID of the merchant connector account #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub merchant_connector_id: id_type::MerchantConnectorAccountId, /// Identifier for the profile, if not provided default will be chosen from merchant account #[schema(max_length = 64, value_type = String)] pub profile_id: id_type::ProfileId, /// An object containing the required details/credentials for a Connector account. #[schema(value_type = Option<MerchantConnectorDetails>,example = json!({ "auth_type": "HeaderKey","api_key": "Basic MyVerySecretApiKey" }))] pub connector_account_details: pii::SecretSerdeValue, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(example = json!([ { "payment_method": "wallet", "payment_method_types": [ "upi_collect", "upi_intent" ], "payment_method_issuers": [ "labore magna ipsum", "aute" ], "payment_schemes": [ "Discover", "Discover" ], "accepted_currencies": { "type": "enable_only", "list": ["USD", "EUR"] }, "accepted_countries": { "type": "disable_only", "list": ["FR", "DE","IN"] }, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ]))] pub payment_methods_enabled: Option<Vec<PaymentMethodsEnabled>>, /// Webhook details of this merchant connector #[schema(example = json!({ "connector_webhook_details": { "merchant_secret": "1234567890987654321" } }))] pub connector_webhook_details: Option<MerchantConnectorWebhookDetails>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>,max_length = 255,example = json!({ "city": "NY", "unit": "245" }))] pub metadata: Option<pii::SecretSerdeValue>, /// A boolean value to indicate if the connector is in Test mode. By default, its value is false. #[schema(default = false, example = false)] pub test_mode: Option<bool>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// The business country to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(value_type = Option<CountryAlpha2>, example = "US")] pub business_country: Option<api_enums::CountryAlpha2>, ///The business label to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(example = "travel")] pub business_label: Option<String>, /// The business sublabel to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(example = "chase")] pub business_sub_label: Option<String>, /// identifier for the verified domains of a particular connector account pub applepay_verified_domains: Option<Vec<String>>, #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = ConnectorStatus, example = "inactive")] pub status: api_enums::ConnectorStatus, #[schema(value_type = Option<AdditionalMerchantData>)] pub additional_merchant_data: Option<AdditionalMerchantData>, /// The connector_wallets_details is used to store wallet details such as certificates and wallet credentials #[schema(value_type = Option<ConnectorWalletDetails>)] pub connector_wallets_details: Option<ConnectorWalletDetails>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_7166894014369835756
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorListResponse { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(value_type = Connector, example = "stripe")] pub connector_name: String, /// A unique label to identify the connector account created under a profile #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// Unique ID of the merchant connector account #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub merchant_connector_id: id_type::MerchantConnectorAccountId, /// Identifier for the profile, if not provided default will be chosen from merchant account #[schema(max_length = 64, value_type = String)] pub profile_id: id_type::ProfileId, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(example = json!([ { "payment_method": "wallet", "payment_method_types": [ "upi_collect", "upi_intent" ], "payment_method_issuers": [ "labore magna ipsum", "aute" ], "payment_schemes": [ "Discover", "Discover" ], "accepted_currencies": { "type": "enable_only", "list": ["USD", "EUR"] }, "accepted_countries": { "type": "disable_only", "list": ["FR", "DE","IN"] }, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ]))] pub payment_methods_enabled: Option<Vec<PaymentMethodsEnabled>>, /// A boolean value to indicate if the connector is in Test mode. By default, its value is false. #[schema(default = false, example = false)] pub test_mode: Option<bool>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// The business country to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(value_type = Option<CountryAlpha2>, example = "US")] pub business_country: Option<api_enums::CountryAlpha2>, ///The business label to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(example = "travel")] pub business_label: Option<String>, /// The business sublabel to which the connector account is attached. To be deprecated soon. Use the 'profile_id' instead #[schema(example = "chase")] pub business_sub_label: Option<String>, /// identifier for the verified domains of a particular connector account pub applepay_verified_domains: Option<Vec<String>>, #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = ConnectorStatus, example = "inactive")] pub status: api_enums::ConnectorStatus, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorListResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_7166894014369835756
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorListResponse { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(value_type = Connector, example = "stripe")] pub connector_name: common_enums::connector_enums::Connector, /// A unique label to identify the connector account created under a profile #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// Unique ID of the merchant connector account #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub id: id_type::MerchantConnectorAccountId, /// Identifier for the profile, if not provided default will be chosen from merchant account #[schema(max_length = 64, value_type = String)] pub profile_id: id_type::ProfileId, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(value_type = Vec<PaymentMethodsEnabled>)] pub payment_methods_enabled: Option<Vec<common_types::payment_methods::PaymentMethodsEnabled>>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// identifier for the verified domains of a particular connector account pub applepay_verified_domains: Option<Vec<String>>, #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = ConnectorStatus, example = "inactive")] pub status: api_enums::ConnectorStatus, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorListResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-2544780963900337224
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorUpdate { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// This is an unique label you can generate and pass in order to identify this connector account on your Hyperswitch dashboard and reports. Eg: if your profile label is `default`, connector label can be `stripe_default` #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// An object containing the required details/credentials for a Connector account. #[schema(value_type = Option<MerchantConnectorDetails>,example = json!({ "auth_type": "HeaderKey","api_key": "Basic MyVerySecretApiKey" }))] pub connector_account_details: Option<pii::SecretSerdeValue>, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(example = json!([ { "payment_method": "wallet", "payment_method_types": [ "upi_collect", "upi_intent" ], "payment_method_issuers": [ "labore magna ipsum", "aute" ], "payment_schemes": [ "Discover", "Discover" ], "accepted_currencies": { "type": "enable_only", "list": ["USD", "EUR"] }, "accepted_countries": { "type": "disable_only", "list": ["FR", "DE","IN"] }, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ]))] pub payment_methods_enabled: Option<Vec<PaymentMethodsEnabled>>, /// Webhook details of this merchant connector #[schema(example = json!({ "connector_webhook_details": { "merchant_secret": "1234567890987654321" } }))] pub connector_webhook_details: Option<MerchantConnectorWebhookDetails>, /// Metadata is useful for storing additional, unstructured information on an object. #[schema(value_type = Option<Object>,max_length = 255,example = json!({ "city": "NY", "unit": "245" }))] pub metadata: Option<pii::SecretSerdeValue>, /// A boolean value to indicate if the connector is in Test mode. By default, its value is false. #[schema(default = false, example = false)] pub test_mode: Option<bool>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// pm_auth_config will relate MCA records to their respective chosen auth services, based on payment_method and pmt #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = ConnectorStatus, example = "inactive")] pub status: Option<api_enums::ConnectorStatus>, /// In case the merchant needs to store any additional sensitive data #[schema(value_type = Option<AdditionalMerchantData>)] pub additional_merchant_data: Option<AdditionalMerchantData>, /// The connector_wallets_details is used to store wallet details such as certificates and wallet credentials #[schema(value_type = Option<ConnectorWalletDetails>)] pub connector_wallets_details: Option<ConnectorWalletDetails>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorUpdate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1371129009674316005
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct ConnectorWalletDetails { /// This field contains the Apple Pay certificates and credentials for iOS and Web Apple Pay flow #[serde(skip_serializing_if = "Option::is_none")] #[schema(value_type = Option<Object>)] pub apple_pay_combined: Option<pii::SecretSerdeValue>, /// This field is for our legacy Apple Pay flow that contains the Apple Pay certificates and credentials for only iOS Apple Pay flow #[serde(skip_serializing_if = "Option::is_none")] #[schema(value_type = Option<Object>)] pub apple_pay: Option<pii::SecretSerdeValue>, /// This field contains the Amazon Pay certificates and credentials #[serde(skip_serializing_if = "Option::is_none")] #[schema(value_type = Option<Object>)] pub amazon_pay: Option<pii::SecretSerdeValue>, /// This field contains the Samsung Pay certificates and credentials #[serde(skip_serializing_if = "Option::is_none")] #[schema(value_type = Option<Object>)] pub samsung_pay: Option<pii::SecretSerdeValue>, /// This field contains the Paze certificates and credentials #[serde(skip_serializing_if = "Option::is_none")] #[schema(value_type = Option<Object>)] pub paze: Option<pii::SecretSerdeValue>, /// This field contains the Google Pay certificates and credentials #[serde(skip_serializing_if = "Option::is_none")] #[schema(value_type = Option<Object>)] pub google_pay: Option<pii::SecretSerdeValue>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ConnectorWalletDetails", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-2544780963900337224
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorUpdate { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// This is an unique label you can generate and pass in order to identify this connector account on your Hyperswitch dashboard and reports, If not passed then if will take `connector_name`_`profile_name`. Eg: if your profile label is `default`, connector label can be `stripe_default` #[schema(example = "stripe_US_travel")] pub connector_label: Option<String>, /// An object containing the required details/credentials for a Connector account. #[schema(value_type = Option<MerchantConnectorDetails>,example = json!({ "auth_type": "HeaderKey","api_key": "Basic MyVerySecretApiKey" }))] pub connector_account_details: Option<pii::SecretSerdeValue>, /// An object containing the details about the payment methods that need to be enabled under this merchant connector account #[schema(value_type = Option<Vec<PaymentMethodsEnabled>>)] pub payment_methods_enabled: Option<Vec<common_types::payment_methods::PaymentMethodsEnabled>>, /// Webhook details of this merchant connector #[schema(example = json!({ "connector_webhook_details": { "merchant_secret": "1234567890987654321" } }))] pub connector_webhook_details: Option<MerchantConnectorWebhookDetails>, /// You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object. #[schema(value_type = Option<Object>,max_length = 255,example = json!({ "city": "NY", "unit": "245" }))] pub metadata: Option<pii::SecretSerdeValue>, /// A boolean value to indicate if the connector is disabled. By default, its value is false. #[schema(default = false, example = false)] pub disabled: Option<bool>, /// Contains the frm configs for the merchant connector #[schema(example = json!(consts::FRM_CONFIGS_EG))] pub frm_configs: Option<Vec<FrmConfigs>>, /// pm_auth_config will relate MCA records to their respective chosen auth services, based on payment_method and pmt #[schema(value_type = Option<Object>)] pub pm_auth_config: Option<pii::SecretSerdeValue>, #[schema(value_type = ConnectorStatus, example = "inactive")] pub status: Option<api_enums::ConnectorStatus>, /// The identifier for the Merchant Account #[schema(value_type = String, max_length = 64, min_length = 1, example = "y3oqhf46pyzuxjbcn2giaqnb44")] pub merchant_id: id_type::MerchantId, /// In case the merchant needs to store any additional sensitive data #[schema(value_type = Option<AdditionalMerchantData>)] pub additional_merchant_data: Option<AdditionalMerchantData>, /// The connector_wallets_details is used to store wallet details such as certificates and wallet credentials pub connector_wallets_details: Option<ConnectorWalletDetails>, /// Additional data that might be required by hyperswitch, to enable some specific features. #[schema(value_type = Option<MerchantConnectorAccountFeatureMetadata>)] pub feature_metadata: Option<MerchantConnectorAccountFeatureMetadata>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorUpdate", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_2727848259549354273
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct FrmConfigs { ///this is the connector that can be used for the payment #[schema(value_type = ConnectorType, example = "payment_processor")] pub gateway: Option<api_enums::Connector>, ///payment methods that can be used in the payment pub payment_methods: Vec<FrmPaymentMethod>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "FrmConfigs", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-8428295557306303441
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct FrmPaymentMethod { ///payment methods(card, wallet, etc) that can be used in the payment #[schema(value_type = PaymentMethod,example = "card")] pub payment_method: Option<common_enums::PaymentMethod>, ///payment method types(credit, debit) that can be used in the payment. This field is deprecated. It has not been removed to provide backward compatibility. pub payment_method_types: Option<Vec<FrmPaymentMethodType>>, ///frm flow type to be used, can be pre/post #[schema(value_type = Option<FrmPreferredFlowTypes>)] pub flow: Option<api_enums::FrmPreferredFlowTypes>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "FrmPaymentMethod", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-1459012065672242977
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct FrmPaymentMethodType { ///payment method types(credit, debit) that can be used in the payment #[schema(value_type = PaymentMethodType)] pub payment_method_type: Option<common_enums::PaymentMethodType>, ///card networks(like visa mastercard) types that can be used in the payment #[schema(value_type = CardNetwork)] pub card_networks: Option<Vec<common_enums::CardNetwork>>, ///frm flow type to be used, can be pre/post #[schema(value_type = FrmPreferredFlowTypes)] pub flow: api_enums::FrmPreferredFlowTypes, ///action that the frm would take, in case fraud is detected #[schema(value_type = FrmAction)] pub action: api_enums::FrmAction, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "FrmPaymentMethodType", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5050522500340570423
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct PaymentMethodsEnabled { /// Type of payment method. #[schema(value_type = PaymentMethod,example = "card")] pub payment_method: common_enums::PaymentMethod, /// Subtype of payment method #[schema(value_type = Option<Vec<RequestPaymentMethodTypes>>,example = json!(["credit"]))] pub payment_method_types: Option<Vec<payment_methods::RequestPaymentMethodTypes>>, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "PaymentMethodsEnabled", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6361687013110921018
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorDeleteResponse { /// The identifier for the Merchant Account #[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// Unique ID of the connector #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub merchant_connector_id: id_type::MerchantConnectorAccountId, /// If the connector is deleted or not #[schema(example = false)] pub deleted: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorDeleteResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_6361687013110921018
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantConnectorDeleteResponse { /// The identifier for the Merchant Account #[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// Unique ID of the connector #[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)] pub id: id_type::MerchantConnectorAccountId, /// If the connector is deleted or not #[schema(example = false)] pub deleted: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantConnectorDeleteResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-4952152958126590719
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct ToggleKVResponse { /// The identifier for the Merchant Account #[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// Status of KV for the specific merchant #[schema(example = true)] pub kv_enabled: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ToggleKVResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-5655965310301911797
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct MerchantKeyTransferRequest { /// Offset for merchant account #[schema(example = 32)] pub from: u32, /// Limit for merchant account #[schema(example = 32)] pub limit: u32, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "MerchantKeyTransferRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_8529565421973193387
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct TransferKeyResponse { /// The identifier for the Merchant Account #[schema(example = 32)] pub total_transferred: usize, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "TransferKeyResponse", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_1653475399341998340
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct ToggleKVRequest { #[serde(skip_deserializing)] #[schema(value_type = String)] pub merchant_id: id_type::MerchantId, /// Status of KV for the specific merchant #[schema(example = true)] pub kv_enabled: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ToggleKVRequest", "total_crates": null, "trait_name": null }
hyperswitch_struct_api_models_-6454705328336039459
clm
struct
// hyperswitch/crates/api_models/src/admin.rs pub struct ToggleAllKVRequest { /// Status of KV for the specific merchant #[schema(example = true)] pub kv_enabled: bool, }
{ "chunk": null, "crate": "api_models", "enum_name": null, "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": "ToggleAllKVRequest", "total_crates": null, "trait_name": null }