jc-protobuf-money 1.0.34

Jesus Connections money grpc api
/// Requests
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.StringListRequest"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StringListRequest {
    #[prost(message, repeated, tag = "1")]
    pub strings: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.ExchangeRateRequest"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExchangeRateRequest {
    #[prost(string, tag = "1")]
    pub currency: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub date: ::prost::alloc::string::String,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.AmountCollectedRequest"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AmountCollectedRequest {
    #[prost(string, tag = "1")]
    pub date_collected: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub event_pid: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub recorded_by: ::prost::alloc::string::String,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.MoneyRequest"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoneyRequest {
    #[prost(string, tag = "1")]
    pub event_pid: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub money_collected: ::prost::alloc::vec::Vec<MoneyCollectedRequest>,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.MoneyCollectedRequest"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoneyCollectedRequest {
    #[prost(string, tag = "1")]
    pub currency_code: ::prost::alloc::string::String,
    #[prost(int32, tag = "2")]
    pub no_of_currency: i32,
    #[prost(int32, tag = "3")]
    pub denomination: i32,
    #[prost(enumeration = "MoneyCollectedType", tag = "4")]
    pub r#type: i32,
    #[prost(message, optional, tag = "5")]
    pub tithe_number: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, tag = "6")]
    pub recorded_by: ::prost::alloc::string::String,
    #[prost(string, tag = "7")]
    pub amount_collected_pid: ::prost::alloc::string::String,
}
/// Response
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.Rate"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Rate {
    #[prost(map = "string, double", tag = "1")]
    pub rates: ::std::collections::HashMap<::prost::alloc::string::String, f64>,
    #[prost(string, tag = "2")]
    pub base: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub date: ::prost::alloc::string::String,
    #[prost(int64, tag = "4")]
    pub timestamp: i64,
    #[prost(bool, tag = "5")]
    pub success: bool,
    #[prost(bool, tag = "6")]
    pub historical: bool,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.AmountCollectedAuditLogResponse"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AmountCollectedAuditLogResponse {
    #[prost(string, tag = "1")]
    pub date_created: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub responsible: ::prost::alloc::string::String,
    #[prost(int64, tag = "4")]
    pub amount_collected_id: i64,
    #[prost(string, tag = "5")]
    pub pid: ::prost::alloc::string::String,
    #[prost(string, tag = "6")]
    pub amount_collected_pid: ::prost::alloc::string::String,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.MoneyCollectedResponses"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoneyCollectedResponses {
    #[prost(message, repeated, tag = "1")]
    pub money_collected_list: ::prost::alloc::vec::Vec<MoneyCollectedResponse>,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.MoneyCollectedResponse"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoneyCollectedResponse {
    #[prost(string, tag = "1")]
    pub currency_code: ::prost::alloc::string::String,
    #[prost(double, tag = "2")]
    pub total_for_original_currency: f64,
    #[prost(double, tag = "3")]
    pub exchange_rate: f64,
    #[prost(int32, tag = "4")]
    pub no_of_currency: i32,
    #[prost(int32, tag = "5")]
    pub denomination: i32,
    #[prost(double, tag = "6")]
    pub total_in_sek: f64,
    #[prost(enumeration = "MoneyCollectedType", tag = "7")]
    pub r#type: i32,
    #[prost(string, tag = "8")]
    pub recorded_by: ::prost::alloc::string::String,
    #[prost(string, tag = "9")]
    pub pid: ::prost::alloc::string::String,
    #[prost(string, tag = "10")]
    pub amount_collected_pid: ::prost::alloc::string::String,
    #[prost(string, tag = "11")]
    pub date_created: ::prost::alloc::string::String,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.InternalHealthResponse"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InternalHealthResponse {
    #[prost(string, tag = "1")]
    pub status: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    #[prost(map = "string, string", tag = "3")]
    pub details: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(string, tag = "4")]
    pub last_seen: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub ip_address: ::prost::alloc::string::String,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.ExchangeRateResponses"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExchangeRateResponses {
    #[prost(message, repeated, tag = "1")]
    pub exchange_response_list: ::prost::alloc::vec::Vec<ExchangeRateResponse>,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.ExchangeRateResponse"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExchangeRateResponse {
    #[prost(double, tag = "1")]
    pub rate: f64,
    #[prost(string, tag = "2")]
    pub currency_code: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub date: ::prost::alloc::string::String,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.PageRespDTO"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PageRespDto {
    #[prost(int64, tag = "1")]
    pub total_elements: i64,
    #[prost(int32, tag = "2")]
    pub total_pages: i32,
    #[prost(message, repeated, tag = "3")]
    pub rates: ::prost::alloc::vec::Vec<ExchangeRateResponse>,
    #[prost(int32, tag = "4")]
    pub page_number: i32,
    #[prost(bool, tag = "5")]
    pub has_next: bool,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.AmountCollectedResponse"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AmountCollectedResponse {
    #[prost(double, tag = "1")]
    pub total_in_sek: f64,
    #[prost(string, tag = "2")]
    pub date_collected: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "3")]
    pub money_collected: ::prost::alloc::vec::Vec<MoneyCollectedResponse>,
    #[prost(message, repeated, tag = "4")]
    pub audit_logs: ::prost::alloc::vec::Vec<AmountCollectedAuditLogResponse>,
    #[prost(string, tag = "5")]
    pub pid: ::prost::alloc::string::String,
    #[prost(string, tag = "6")]
    pub event_pid: ::prost::alloc::string::String,
}
#[derive(::grpc_build_core::NamedMessage)]
#[name = "money.AmountCollectedResponses"]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AmountCollectedResponses {
    #[prost(message, repeated, tag = "1")]
    pub amount_collected_list: ::prost::alloc::vec::Vec<AmountCollectedResponse>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MoneyCollectedType {
    Tithe = 0,
    Thanksgiving = 1,
    Seed = 2,
    Others = 3,
    Offering = 4,
}
impl MoneyCollectedType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            MoneyCollectedType::Tithe => "TITHE",
            MoneyCollectedType::Thanksgiving => "THANKSGIVING",
            MoneyCollectedType::Seed => "SEED",
            MoneyCollectedType::Others => "OTHERS",
            MoneyCollectedType::Offering => "OFFERING",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "TITHE" => Some(Self::Tithe),
            "THANKSGIVING" => Some(Self::Thanksgiving),
            "SEED" => Some(Self::Seed),
            "OTHERS" => Some(Self::Others),
            "OFFERING" => Some(Self::Offering),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod amount_collected_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct AmountCollectedServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl AmountCollectedServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: std::convert::TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> AmountCollectedServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> AmountCollectedServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            AmountCollectedServiceClient::new(
                InterceptedService::new(inner, interceptor),
            )
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        pub async fn get_for_event(
            &mut self,
            request: impl tonic::IntoRequest<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<super::AmountCollectedResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.AmountCollectedService/getForEvent",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn get_by_ids(
            &mut self,
            request: impl tonic::IntoRequest<super::StringListRequest>,
        ) -> Result<tonic::Response<super::AmountCollectedResponses>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.AmountCollectedService/getByIds",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn get_by_event_ids(
            &mut self,
            request: impl tonic::IntoRequest<super::StringListRequest>,
        ) -> Result<tonic::Response<super::AmountCollectedResponses>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.AmountCollectedService/getByEventIds",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::AmountCollectedRequest>,
        ) -> Result<tonic::Response<super::AmountCollectedResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.AmountCollectedService/create",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<()>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.AmountCollectedService/delete",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
    }
}
/// Generated client implementations.
pub mod money_collected_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct MoneyCollectedServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl MoneyCollectedServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: std::convert::TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> MoneyCollectedServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> MoneyCollectedServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            MoneyCollectedServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        pub async fn add_money_collected(
            &mut self,
            request: impl tonic::IntoRequest<super::MoneyCollectedRequest>,
        ) -> Result<tonic::Response<super::MoneyCollectedResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.MoneyCollectedService/addMoneyCollected",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn add_money_collected_to_existing_amount_collected_for_event(
            &mut self,
            request: impl tonic::IntoRequest<super::MoneyRequest>,
        ) -> Result<tonic::Response<super::MoneyCollectedResponses>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.MoneyCollectedService/addMoneyCollectedToExistingAmountCollectedForEvent",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn delete_monies_collected(
            &mut self,
            request: impl tonic::IntoRequest<super::StringListRequest>,
        ) -> Result<tonic::Response<()>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.MoneyCollectedService/deleteMoniesCollected",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
    }
}
/// Generated client implementations.
pub mod exchange_rate_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct ExchangeRateServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl ExchangeRateServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: std::convert::TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> ExchangeRateServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> ExchangeRateServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            ExchangeRateServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        pub async fn get_exchange_rate_for_currency_and_date(
            &mut self,
            request: impl tonic::IntoRequest<super::ExchangeRateRequest>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.ExchangeRateService/getExchangeRateForCurrencyAndDate",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn get_exchange_rates_for_currency(
            &mut self,
            request: impl tonic::IntoRequest<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.ExchangeRateService/getExchangeRatesForCurrency",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn get_exchange_rates_for_date(
            &mut self,
            request: impl tonic::IntoRequest<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.ExchangeRateService/getExchangeRatesForDate",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn get_all_exchange_rates(
            &mut self,
            request: impl tonic::IntoRequest<()>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.ExchangeRateService/getAllExchangeRates",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
    }
}
/// Generated client implementations.
pub mod component_health_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct ComponentHealthServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl ComponentHealthServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: std::convert::TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> ComponentHealthServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> ComponentHealthServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            ComponentHealthServiceClient::new(
                InterceptedService::new(inner, interceptor),
            )
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        pub async fn show_details(
            &mut self,
            request: impl tonic::IntoRequest<()>,
        ) -> Result<tonic::Response<super::InternalHealthResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/money.ComponentHealthService/showDetails",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
    }
}
/// Generated server implementations.
pub mod amount_collected_service_server {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with AmountCollectedServiceServer.
    #[async_trait]
    pub trait AmountCollectedService: Send + Sync + 'static {
        async fn get_for_event(
            &self,
            request: tonic::Request<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<super::AmountCollectedResponse>, tonic::Status>;
        async fn get_by_ids(
            &self,
            request: tonic::Request<super::StringListRequest>,
        ) -> Result<tonic::Response<super::AmountCollectedResponses>, tonic::Status>;
        async fn get_by_event_ids(
            &self,
            request: tonic::Request<super::StringListRequest>,
        ) -> Result<tonic::Response<super::AmountCollectedResponses>, tonic::Status>;
        async fn create(
            &self,
            request: tonic::Request<super::AmountCollectedRequest>,
        ) -> Result<tonic::Response<super::AmountCollectedResponse>, tonic::Status>;
        async fn delete(
            &self,
            request: tonic::Request<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<()>, tonic::Status>;
    }
    #[derive(Debug)]
    pub struct AmountCollectedServiceServer<T: AmountCollectedService> {
        inner: _Inner<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
    }
    struct _Inner<T>(Arc<T>);
    impl<T: AmountCollectedService> AmountCollectedServiceServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            let inner = _Inner(inner);
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
            }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>>
    for AmountCollectedServiceServer<T>
    where
        T: AmountCollectedService,
        B: Body + Send + 'static,
        B::Error: Into<StdError> + Send + 'static,
    {
        type Response = http::Response<tonic::body::BoxBody>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            let inner = self.inner.clone();
            match req.uri().path() {
                "/money.AmountCollectedService/getForEvent" => {
                    #[allow(non_camel_case_types)]
                    struct getForEventSvc<T: AmountCollectedService>(pub Arc<T>);
                    impl<
                        T: AmountCollectedService,
                    > tonic::server::UnaryService<::prost::alloc::string::String>
                    for getForEventSvc<T> {
                        type Response = super::AmountCollectedResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<::prost::alloc::string::String>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).get_for_event(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = getForEventSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.AmountCollectedService/getByIds" => {
                    #[allow(non_camel_case_types)]
                    struct getByIdsSvc<T: AmountCollectedService>(pub Arc<T>);
                    impl<
                        T: AmountCollectedService,
                    > tonic::server::UnaryService<super::StringListRequest>
                    for getByIdsSvc<T> {
                        type Response = super::AmountCollectedResponses;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::StringListRequest>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move { (*inner).get_by_ids(request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = getByIdsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.AmountCollectedService/getByEventIds" => {
                    #[allow(non_camel_case_types)]
                    struct getByEventIdsSvc<T: AmountCollectedService>(pub Arc<T>);
                    impl<
                        T: AmountCollectedService,
                    > tonic::server::UnaryService<super::StringListRequest>
                    for getByEventIdsSvc<T> {
                        type Response = super::AmountCollectedResponses;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::StringListRequest>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).get_by_event_ids(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = getByEventIdsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.AmountCollectedService/create" => {
                    #[allow(non_camel_case_types)]
                    struct createSvc<T: AmountCollectedService>(pub Arc<T>);
                    impl<
                        T: AmountCollectedService,
                    > tonic::server::UnaryService<super::AmountCollectedRequest>
                    for createSvc<T> {
                        type Response = super::AmountCollectedResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::AmountCollectedRequest>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move { (*inner).create(request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = createSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.AmountCollectedService/delete" => {
                    #[allow(non_camel_case_types)]
                    struct deleteSvc<T: AmountCollectedService>(pub Arc<T>);
                    impl<
                        T: AmountCollectedService,
                    > tonic::server::UnaryService<::prost::alloc::string::String>
                    for deleteSvc<T> {
                        type Response = ();
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<::prost::alloc::string::String>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move { (*inner).delete(request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = deleteSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                _ => {
                    Box::pin(async move {
                        Ok(
                            http::Response::builder()
                                .status(200)
                                .header("grpc-status", "12")
                                .header("content-type", "application/grpc")
                                .body(empty_body())
                                .unwrap(),
                        )
                    })
                }
            }
        }
    }
    impl<T: AmountCollectedService> Clone for AmountCollectedServiceServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
            }
        }
    }
    impl<T: AmountCollectedService> Clone for _Inner<T> {
        fn clone(&self) -> Self {
            Self(self.0.clone())
        }
    }
    impl<T: std::fmt::Debug> std::fmt::Debug for _Inner<T> {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            write!(f, "{:?}", self.0)
        }
    }
    impl<T: AmountCollectedService> tonic::server::NamedService
    for AmountCollectedServiceServer<T> {
        const NAME: &'static str = "money.AmountCollectedService";
    }
}
/// Generated server implementations.
pub mod money_collected_service_server {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with MoneyCollectedServiceServer.
    #[async_trait]
    pub trait MoneyCollectedService: Send + Sync + 'static {
        async fn add_money_collected(
            &self,
            request: tonic::Request<super::MoneyCollectedRequest>,
        ) -> Result<tonic::Response<super::MoneyCollectedResponse>, tonic::Status>;
        async fn add_money_collected_to_existing_amount_collected_for_event(
            &self,
            request: tonic::Request<super::MoneyRequest>,
        ) -> Result<tonic::Response<super::MoneyCollectedResponses>, tonic::Status>;
        async fn delete_monies_collected(
            &self,
            request: tonic::Request<super::StringListRequest>,
        ) -> Result<tonic::Response<()>, tonic::Status>;
    }
    #[derive(Debug)]
    pub struct MoneyCollectedServiceServer<T: MoneyCollectedService> {
        inner: _Inner<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
    }
    struct _Inner<T>(Arc<T>);
    impl<T: MoneyCollectedService> MoneyCollectedServiceServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            let inner = _Inner(inner);
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
            }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>>
    for MoneyCollectedServiceServer<T>
    where
        T: MoneyCollectedService,
        B: Body + Send + 'static,
        B::Error: Into<StdError> + Send + 'static,
    {
        type Response = http::Response<tonic::body::BoxBody>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            let inner = self.inner.clone();
            match req.uri().path() {
                "/money.MoneyCollectedService/addMoneyCollected" => {
                    #[allow(non_camel_case_types)]
                    struct addMoneyCollectedSvc<T: MoneyCollectedService>(pub Arc<T>);
                    impl<
                        T: MoneyCollectedService,
                    > tonic::server::UnaryService<super::MoneyCollectedRequest>
                    for addMoneyCollectedSvc<T> {
                        type Response = super::MoneyCollectedResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::MoneyCollectedRequest>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).add_money_collected(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = addMoneyCollectedSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.MoneyCollectedService/addMoneyCollectedToExistingAmountCollectedForEvent" => {
                    #[allow(non_camel_case_types)]
                    struct addMoneyCollectedToExistingAmountCollectedForEventSvc<
                        T: MoneyCollectedService,
                    >(
                        pub Arc<T>,
                    );
                    impl<
                        T: MoneyCollectedService,
                    > tonic::server::UnaryService<super::MoneyRequest>
                    for addMoneyCollectedToExistingAmountCollectedForEventSvc<T> {
                        type Response = super::MoneyCollectedResponses;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::MoneyRequest>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner)
                                    .add_money_collected_to_existing_amount_collected_for_event(
                                        request,
                                    )
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = addMoneyCollectedToExistingAmountCollectedForEventSvc(
                            inner,
                        );
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.MoneyCollectedService/deleteMoniesCollected" => {
                    #[allow(non_camel_case_types)]
                    struct deleteMoniesCollectedSvc<T: MoneyCollectedService>(
                        pub Arc<T>,
                    );
                    impl<
                        T: MoneyCollectedService,
                    > tonic::server::UnaryService<super::StringListRequest>
                    for deleteMoniesCollectedSvc<T> {
                        type Response = ();
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::StringListRequest>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).delete_monies_collected(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = deleteMoniesCollectedSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                _ => {
                    Box::pin(async move {
                        Ok(
                            http::Response::builder()
                                .status(200)
                                .header("grpc-status", "12")
                                .header("content-type", "application/grpc")
                                .body(empty_body())
                                .unwrap(),
                        )
                    })
                }
            }
        }
    }
    impl<T: MoneyCollectedService> Clone for MoneyCollectedServiceServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
            }
        }
    }
    impl<T: MoneyCollectedService> Clone for _Inner<T> {
        fn clone(&self) -> Self {
            Self(self.0.clone())
        }
    }
    impl<T: std::fmt::Debug> std::fmt::Debug for _Inner<T> {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            write!(f, "{:?}", self.0)
        }
    }
    impl<T: MoneyCollectedService> tonic::server::NamedService
    for MoneyCollectedServiceServer<T> {
        const NAME: &'static str = "money.MoneyCollectedService";
    }
}
/// Generated server implementations.
pub mod exchange_rate_service_server {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with ExchangeRateServiceServer.
    #[async_trait]
    pub trait ExchangeRateService: Send + Sync + 'static {
        async fn get_exchange_rate_for_currency_and_date(
            &self,
            request: tonic::Request<super::ExchangeRateRequest>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status>;
        async fn get_exchange_rates_for_currency(
            &self,
            request: tonic::Request<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status>;
        async fn get_exchange_rates_for_date(
            &self,
            request: tonic::Request<::prost::alloc::string::String>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status>;
        async fn get_all_exchange_rates(
            &self,
            request: tonic::Request<()>,
        ) -> Result<tonic::Response<super::ExchangeRateResponses>, tonic::Status>;
    }
    #[derive(Debug)]
    pub struct ExchangeRateServiceServer<T: ExchangeRateService> {
        inner: _Inner<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
    }
    struct _Inner<T>(Arc<T>);
    impl<T: ExchangeRateService> ExchangeRateServiceServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            let inner = _Inner(inner);
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
            }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>> for ExchangeRateServiceServer<T>
    where
        T: ExchangeRateService,
        B: Body + Send + 'static,
        B::Error: Into<StdError> + Send + 'static,
    {
        type Response = http::Response<tonic::body::BoxBody>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            let inner = self.inner.clone();
            match req.uri().path() {
                "/money.ExchangeRateService/getExchangeRateForCurrencyAndDate" => {
                    #[allow(non_camel_case_types)]
                    struct getExchangeRateForCurrencyAndDateSvc<T: ExchangeRateService>(
                        pub Arc<T>,
                    );
                    impl<
                        T: ExchangeRateService,
                    > tonic::server::UnaryService<super::ExchangeRateRequest>
                    for getExchangeRateForCurrencyAndDateSvc<T> {
                        type Response = super::ExchangeRateResponses;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ExchangeRateRequest>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner)
                                    .get_exchange_rate_for_currency_and_date(request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = getExchangeRateForCurrencyAndDateSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.ExchangeRateService/getExchangeRatesForCurrency" => {
                    #[allow(non_camel_case_types)]
                    struct getExchangeRatesForCurrencySvc<T: ExchangeRateService>(
                        pub Arc<T>,
                    );
                    impl<
                        T: ExchangeRateService,
                    > tonic::server::UnaryService<::prost::alloc::string::String>
                    for getExchangeRatesForCurrencySvc<T> {
                        type Response = super::ExchangeRateResponses;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<::prost::alloc::string::String>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).get_exchange_rates_for_currency(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = getExchangeRatesForCurrencySvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.ExchangeRateService/getExchangeRatesForDate" => {
                    #[allow(non_camel_case_types)]
                    struct getExchangeRatesForDateSvc<T: ExchangeRateService>(
                        pub Arc<T>,
                    );
                    impl<
                        T: ExchangeRateService,
                    > tonic::server::UnaryService<::prost::alloc::string::String>
                    for getExchangeRatesForDateSvc<T> {
                        type Response = super::ExchangeRateResponses;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<::prost::alloc::string::String>,
                        ) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).get_exchange_rates_for_date(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = getExchangeRatesForDateSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/money.ExchangeRateService/getAllExchangeRates" => {
                    #[allow(non_camel_case_types)]
                    struct getAllExchangeRatesSvc<T: ExchangeRateService>(pub Arc<T>);
                    impl<T: ExchangeRateService> tonic::server::UnaryService<()>
                    for getAllExchangeRatesSvc<T> {
                        type Response = super::ExchangeRateResponses;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(&mut self, request: tonic::Request<()>) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).get_all_exchange_rates(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = getAllExchangeRatesSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                _ => {
                    Box::pin(async move {
                        Ok(
                            http::Response::builder()
                                .status(200)
                                .header("grpc-status", "12")
                                .header("content-type", "application/grpc")
                                .body(empty_body())
                                .unwrap(),
                        )
                    })
                }
            }
        }
    }
    impl<T: ExchangeRateService> Clone for ExchangeRateServiceServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
            }
        }
    }
    impl<T: ExchangeRateService> Clone for _Inner<T> {
        fn clone(&self) -> Self {
            Self(self.0.clone())
        }
    }
    impl<T: std::fmt::Debug> std::fmt::Debug for _Inner<T> {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            write!(f, "{:?}", self.0)
        }
    }
    impl<T: ExchangeRateService> tonic::server::NamedService
    for ExchangeRateServiceServer<T> {
        const NAME: &'static str = "money.ExchangeRateService";
    }
}
/// Generated server implementations.
pub mod component_health_service_server {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with ComponentHealthServiceServer.
    #[async_trait]
    pub trait ComponentHealthService: Send + Sync + 'static {
        async fn show_details(
            &self,
            request: tonic::Request<()>,
        ) -> Result<tonic::Response<super::InternalHealthResponse>, tonic::Status>;
    }
    #[derive(Debug)]
    pub struct ComponentHealthServiceServer<T: ComponentHealthService> {
        inner: _Inner<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
    }
    struct _Inner<T>(Arc<T>);
    impl<T: ComponentHealthService> ComponentHealthServiceServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            let inner = _Inner(inner);
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
            }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>>
    for ComponentHealthServiceServer<T>
    where
        T: ComponentHealthService,
        B: Body + Send + 'static,
        B::Error: Into<StdError> + Send + 'static,
    {
        type Response = http::Response<tonic::body::BoxBody>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            let inner = self.inner.clone();
            match req.uri().path() {
                "/money.ComponentHealthService/showDetails" => {
                    #[allow(non_camel_case_types)]
                    struct showDetailsSvc<T: ComponentHealthService>(pub Arc<T>);
                    impl<T: ComponentHealthService> tonic::server::UnaryService<()>
                    for showDetailsSvc<T> {
                        type Response = super::InternalHealthResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(&mut self, request: tonic::Request<()>) -> Self::Future {
                            let inner = self.0.clone();
                            let fut = async move {
                                (*inner).show_details(request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let inner = inner.0;
                        let method = showDetailsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                _ => {
                    Box::pin(async move {
                        Ok(
                            http::Response::builder()
                                .status(200)
                                .header("grpc-status", "12")
                                .header("content-type", "application/grpc")
                                .body(empty_body())
                                .unwrap(),
                        )
                    })
                }
            }
        }
    }
    impl<T: ComponentHealthService> Clone for ComponentHealthServiceServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
            }
        }
    }
    impl<T: ComponentHealthService> Clone for _Inner<T> {
        fn clone(&self) -> Self {
            Self(self.0.clone())
        }
    }
    impl<T: std::fmt::Debug> std::fmt::Debug for _Inner<T> {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            write!(f, "{:?}", self.0)
        }
    }
    impl<T: ComponentHealthService> tonic::server::NamedService
    for ComponentHealthServiceServer<T> {
        const NAME: &'static str = "money.ComponentHealthService";
    }
}