/* Options: Date: 2026-08-14 21:34:09 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryInvoices.* //ExcludeTypes: //DefaultImports: serde::{Deserialize, Serialize},serde_json::Value,std::collections::HashMap */ #![allow( dead_code, non_camel_case_types, non_snake_case, clippy::upper_case_acronyms )] use serde::{Deserialize, Serialize}; use serde_json::Value; use servicestack::*; use std::collections::HashMap; #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)] #[serde(default)] pub struct Invoices { #[serde(rename = "invoiceId")] pub invoice_id: i64, #[serde(rename = "customerId")] pub customer_id: i64, #[serde(rename = "invoiceDate")] pub invoice_date: String, #[serde(rename = "billingAddress")] pub billing_address: String, #[serde(rename = "billingCity")] pub billing_city: String, #[serde(rename = "billingState")] pub billing_state: String, #[serde(rename = "billingCountry")] pub billing_country: String, #[serde(rename = "billingPostalCode")] pub billing_postal_code: String, pub total: f64, } // Route("/invoices", "GET") // Route("/invoices/{InvoiceId}", "GET") #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)] #[serde(default)] pub struct QueryInvoices { #[serde(flatten)] pub query_db: QueryDb, #[serde(rename = "invoiceId")] #[serde(default, skip_serializing_if = "Option::is_none")] pub invoice_id: Option, } impl IRequest for QueryInvoices { const NAME: &'static str = "QueryInvoices"; const VERB: &'static str = "GET"; } impl IReturn for QueryInvoices { type Response = QueryResponse; }