/// Options: /// 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 /// GlobalNamespace: /// MakePropertiesOptional: False /// AddServiceStackTypes: True /// AddResponseStatus: False /// AddImplicitVersion: /// AddDescriptionAsComments: True //IncludeTypes: CreateCoupon.* /// ExcludeTypes: /// DefaultImports: const std = @import("std"); /// const std = @import("std"); const ss = @import("servicestack"); /// Discount Coupons pub const Coupon = struct { id: ?[]const u8 = null, description: ?[]const u8 = null, discount: i32 = 0, expiryDate: ?[]const u8 = null, }; // @Route("/coupons", "POST") // @ValidateRequest(Validator="HasRole(`Employee`)") pub const CreateCoupon = struct { pub const ss_name = "CreateCoupon"; pub const ss_verb = "POST"; pub const Response = ss.IdResponse; // @Validate(Validator="NotEmpty") description: ?[]const u8 = null, // @Validate(Validator="GreaterThan(0)") discount: i32 = 0, // @Required() expiryDate: ?[]const u8 = null, };