1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use crate::model::DownPaymentInvoice; use crate::request::impls::ById; use crate::request::Endpoint; use crate::request::Request; impl Endpoint for Request<DownPaymentInvoice> { const ENDPOINT: &'static str = "down-payment-invoices"; } /// # Examples /// /// ``` /// use lexoffice::{ApiKey, Client}; /// use lexoffice::model::DownPaymentInvoice; /// /// # async fn run() -> Result<(), Box<dyn std::error::Error>> { /// let client = Client::new(ApiKey::try_default().await?); /// let uuid = uuid::Uuid::parse_str("f4add52b-44e3-474a-b718-890885094d9a")?; /// let invoices = client.request::<DownPaymentInvoice>().by_id(uuid).await?; /// println!("{:#?}", invoices); /// # Ok(()) /// # } /// ``` /// impl ById for Request<DownPaymentInvoice> {}