/* Options: Date: 2024-12-22 21:42:39 SwiftVersion: 6.0 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: UpdateCoupon.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/coupons/{Id}", "PATCH") // @ValidateRequest(Validator="HasRole(`Employee`)") public class UpdateCoupon : IReturn, Codable { public typealias Return = IdResponse public var id:String? // @Validate(Validator="NotEmpty") public var Description:String? // @Validate(Validator="GreaterThan(0)") public var discount:Int? // @Required() public var expiryDate:Date? required public init(){} } // @DataContract public class IdResponse : Codable { // @DataMember(Order=1) public var id:String? // @DataMember(Order=2) public var responseStatus:ResponseStatus? required public init(){} }