# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-08-14 21:35:05 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net #MakePartial: True #MakeVirtual: True #MakeInternal: False #MakeDataContractsExtensible: False #AddReturnMarker: True #AddDescriptionAsComments: True #AddDataContractAttributes: False #AddIndexesToDataMembers: False #AddGeneratedCodeAttributes: False #AddResponseStatus: False #AddImplicitVersion: #InitializeCollections: False #ExportValueTypes: False IncludeTypes: QueryInvoices.* #ExcludeTypes: #AddNamespaces: #AddDefaultXmlNamespace: http://schemas.servicestack.net/types =end require 'json' require 'servicestack' module IReturn def response_type() = T def get_type_name() = 'IReturn' end module IGet end class Invoices include ServiceStack::DTO # @return [Integer] attr_accessor :invoice_id # @return [Integer] attr_accessor :customer_id # @return [DateTime] attr_accessor :invoice_date # @return [String] attr_accessor :billing_address # @return [String] attr_accessor :billing_city # @return [String] attr_accessor :billing_state # @return [String] attr_accessor :billing_country # @return [String] attr_accessor :billing_postal_code # @return [BigDecimal] attr_accessor :total def self.properties { invoice_id: { name: 'invoiceId' }, customer_id: { name: 'customerId' }, invoice_date: { name: 'invoiceDate', type: DateTime }, billing_address: { name: 'billingAddress' }, billing_city: { name: 'billingCity' }, billing_state: { name: 'billingState' }, billing_country: { name: 'billingCountry' }, billing_postal_code: { name: 'billingPostalCode' }, total: { name: 'total' }, } end end # @Route("/invoices", "GET") class QueryInvoices < ServiceStack::QueryDb # @return [Integer] attr_accessor :invoice_id def self.properties { invoice_id: { name: 'invoiceId' }, } end def response_type() = ServiceStack::QueryResponse.of(Invoices) def get_type_name() = 'QueryInvoices' def get_method() = 'GET' end