mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
deps(api_models): put the errors module behind a feature flag (#815)
This commit is contained in:
@ -6,6 +6,7 @@ pub mod cards_info;
|
||||
pub mod customers;
|
||||
pub mod disputes;
|
||||
pub mod enums;
|
||||
#[cfg(feature = "errors")]
|
||||
pub mod errors;
|
||||
pub mod files;
|
||||
pub mod mandates;
|
||||
|
||||
@ -50,14 +50,6 @@ impl From<IncomingWebhookEvent> for WebhookFlow {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct IncomingWebhookRequestDetails<'a> {
|
||||
pub method: actix_web::http::Method,
|
||||
pub headers: &'a actix_web::http::header::HeaderMap,
|
||||
pub body: &'a [u8],
|
||||
pub query_params: String,
|
||||
pub query_params_json: &'a [u8],
|
||||
}
|
||||
|
||||
pub type MerchantWebhookConfig = std::collections::HashSet<IncomingWebhookEvent>;
|
||||
|
||||
pub enum RefundIdType {
|
||||
|
||||
Reference in New Issue
Block a user