/* Options: Date: 2026-08-15 04:56:06 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: PatchInvoices.* //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/{InvoiceId}", "PATCH") #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)] #[serde(default)] pub struct PatchInvoices { #[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, } impl IRequest for PatchInvoices { const NAME: &'static str = "PatchInvoices"; const VERB: &'static str = "PATCH"; } impl IReturn for PatchInvoices { type Response = IdResponse; }