/* Options: Date: 2024-12-22 21:50:10 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: UpdateCoupon.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/coupons/{Id}", Verbs="PATCH") @ValidateRequest(Validator="HasRole(`Employee`)") public static class UpdateCoupon implements IReturn, IPatchDb { public String id = null; @Validate(Validator="NotEmpty") public String description = null; @Validate(Validator="GreaterThan(0)") public Integer discount = null; @Required() public Date expiryDate = null; public String getId() { return id; } public UpdateCoupon setId(String value) { this.id = value; return this; } public String getDescription() { return description; } public UpdateCoupon setDescription(String value) { this.description = value; return this; } public Integer getDiscount() { return discount; } public UpdateCoupon setDiscount(Integer value) { this.discount = value; return this; } public Date getExpiryDate() { return expiryDate; } public UpdateCoupon setExpiryDate(Date value) { this.expiryDate = value; return this; } private static Object responseType = IdResponse.class; public Object getResponseType() { return responseType; } } @DataContract public static class IdResponse { @DataMember(Order=1) public String id = null; @DataMember(Order=2) public ResponseStatus responseStatus = null; public String getId() { return id; } public IdResponse setId(String value) { this.id = value; return this; } public ResponseStatus getResponseStatus() { return responseStatus; } public IdResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } } /** * Discount Coupons */ public static class Coupon { public String id = null; public String description = null; public Integer discount = null; public Date expiryDate = null; public String getId() { return id; } public Coupon setId(String value) { this.id = value; return this; } public String getDescription() { return description; } public Coupon setDescription(String value) { this.description = value; return this; } public Integer getDiscount() { return discount; } public Coupon setDiscount(Integer value) { this.discount = value; return this; } public Date getExpiryDate() { return expiryDate; } public Coupon setExpiryDate(Date value) { this.expiryDate = value; return this; } } }