use super::Service;
use crate::{ApiError, Error, ServiceClient};
use maybe_async::maybe_async;
mod request;
mod response;
pub use request::HolidaysRequest;
pub use response::HolidaysResponse;
struct HolidaysService;
impl Service for HolidaysService {
const PATH: &'static str = "holidays";
type Request = HolidaysRequest;
type Response = HolidaysResponse;
}
impl ServiceClient {
#[maybe_async]
pub async fn get_holidays(
&self,
request: &HolidaysRequest,
) -> Result<Result<HolidaysResponse, ApiError>, Error> {
self.call::<HolidaysService>(request).await
}
}