# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-09-01 21:49:04 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: DeleteCoupon.* #ExcludeTypes: #AddNamespaces: #AddDefaultXmlNamespace: http://schemas.servicestack.net/types =end require 'json' require 'servicestack' module IReturnVoid def response_type() = nil def get_type_name() = 'IReturnVoid' end module IDeleteDb end # # Discount Coupons # class Coupon include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :description # @return [Integer] attr_accessor :discount # @return [DateTime] attr_accessor :expiry_date def self.properties { id: { name: 'id' }, description: { name: 'description' }, discount: { name: 'discount' }, expiry_date: { name: 'expiryDate', type: DateTime }, } end end # # Delete a Coupon # # @Route("/coupons/{Id}", "DELETE") # @ValidateRequest(Validator: "HasRole(`Manager`)") class DeleteCoupon include ServiceStack::DTO # @return [String] attr_accessor :id def self.properties { id: { name: 'id' }, } end def response_type() = nil def get_type_name() = 'DeleteCoupon' def get_method() = 'DELETE' end