/* Options: Date: 2025-12-06 12:12:00 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sfgboxapi.dev.scadsoftware.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: ProductsUnitsAdd.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/products_units", Verbs="POST") @DataContract public static class ProductsUnitsAdd implements IReturn { @DataMember(Order=2) @Validate(Validator="NotNull") public Long tenantsId = null; @DataMember(Order=3) @Validate(Validator="NotNull") public Long zonesId = null; @DataMember(Order=4) @Validate(Validator="NotNull") public Long productsId = null; @DataMember(Order=5) @Validate(Validator="NotNull") public String units = null; @DataMember(Order=6) @Validate(Validator="NotNull") public String description = null; @DataMember(Order=7) @Validate(Validator="NotNull") public Integer weight = null; public Long getTenantsId() { return tenantsId; } public ProductsUnitsAdd setTenantsId(Long value) { this.tenantsId = value; return this; } public Long getZonesId() { return zonesId; } public ProductsUnitsAdd setZonesId(Long value) { this.zonesId = value; return this; } public Long getProductsId() { return productsId; } public ProductsUnitsAdd setProductsId(Long value) { this.productsId = value; return this; } public String getUnits() { return units; } public ProductsUnitsAdd setUnits(String value) { this.units = value; return this; } public String getDescription() { return description; } public ProductsUnitsAdd setDescription(String value) { this.description = value; return this; } public Integer getWeight() { return weight; } public ProductsUnitsAdd setWeight(Integer value) { this.weight = value; return this; } private static Object responseType = ProductsUnitsAddResponse.class; public Object getResponseType() { return responseType; } } public static class ProductsUnitsAddResponse { @DataMember(Order=2) public Long tenantsId = null; @DataMember(Order=3) public Long zonesId = null; @DataMember(Order=4) public Long productsId = null; @DataMember(Order=5) public String units = null; @DataMember(Order=6) public String description = null; @DataMember(Order=7) public Integer weight = null; @DataMember(Order=9) public ResponseStatus responseStatus = null; public Long getTenantsId() { return tenantsId; } public ProductsUnitsAddResponse setTenantsId(Long value) { this.tenantsId = value; return this; } public Long getZonesId() { return zonesId; } public ProductsUnitsAddResponse setZonesId(Long value) { this.zonesId = value; return this; } public Long getProductsId() { return productsId; } public ProductsUnitsAddResponse setProductsId(Long value) { this.productsId = value; return this; } public String getUnits() { return units; } public ProductsUnitsAddResponse setUnits(String value) { this.units = value; return this; } public String getDescription() { return description; } public ProductsUnitsAddResponse setDescription(String value) { this.description = value; return this; } public Integer getWeight() { return weight; } public ProductsUnitsAddResponse setWeight(Integer value) { this.weight = value; return this; } public ResponseStatus getResponseStatus() { return responseStatus; } public ProductsUnitsAddResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } } }