/* Options: Date: 2025-05-10 01:38:48 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: C2BGetSchoolInfoRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { /** * C2BGetSchoolInfoRequires active-e Contracts Service. */ @Route(Path="/C2BGetSchoolInfo", Verbs="POST, GET") @DataContract public static class C2BGetSchoolInfoRequest extends BaseRequest implements IReturn { /** * If sent, only schools associated with the sent plan code will be returned. */ @DataMember @ApiMember(DataType="string", Description="If sent, only schools associated with the sent plan code will be returned.", Name="PlanCode", ParameterType="query") public String PlanCode = null; /** * If sent, only schools associated with the sent district will be returned. */ @DataMember @ApiMember(DataType="integer", Description="If sent, only schools associated with the sent district will be returned.", Format="int64", Name="DistrictId", ParameterType="query") public Long DistrictId = null; /** * ID of the Instrument record. Optional. */ @DataMember @ApiMember(DataType="integer", Description="ID of the Instrument record. Optional.", Format="int64", Name="RinPk", ParameterType="query") public Long RinPk = null; /** * Optional Request Type. Valid values are Contract and Shipping. */ @DataMember @ApiMember(DataType="string", Description="Optional Request Type. Valid values are Contract and Shipping.", Name="RequestType", ParameterType="query") public String RequestType = null; public String getPlanCode() { return PlanCode; } public C2BGetSchoolInfoRequest setPlanCode(String value) { this.PlanCode = value; return this; } public Long getDistrictId() { return DistrictId; } public C2BGetSchoolInfoRequest setDistrictId(Long value) { this.DistrictId = value; return this; } public Long getRinPk() { return RinPk; } public C2BGetSchoolInfoRequest setRinPk(Long value) { this.RinPk = value; return this; } public String getRequestType() { return RequestType; } public C2BGetSchoolInfoRequest setRequestType(String value) { this.RequestType = value; return this; } private static Object responseType = C2BGetSchoolInfoResponse.class; public Object getResponseType() { return responseType; } } @DataContract public static class C2BGetSchoolInfoResponse extends BaseResponse { @DataMember public ArrayList Schools = null; public ArrayList getSchools() { return Schools; } public C2BGetSchoolInfoResponse setSchools(ArrayList value) { this.Schools = value; return this; } } @DataContract public static class BaseRequest { /** * This is your AIM API Key provided by Tri-Tech */ @DataMember @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") public String ApiKey = null; @DataMember @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") public String OAuthToken = null; public String getApiKey() { return ApiKey; } public BaseRequest setApiKey(String value) { this.ApiKey = value; return this; } public String getOAuthToken() { return OAuthToken; } public BaseRequest setOAuthToken(String value) { this.OAuthToken = value; return this; } } @DataContract public static class C2BSchoolGeneric { @DataMember public String SchoolName = null; @DataMember public String DistrictName = null; @DataMember public Integer TeacherCount = null; @DataMember public String Topic = null; @DataMember public Long Id = null; @DataMember public C2BDeliveryInfo DeliveryInfo = null; @DataMember public Long AIMSchoolId = null; public String getSchoolName() { return SchoolName; } public C2BSchoolGeneric setSchoolName(String value) { this.SchoolName = value; return this; } public String getDistrictName() { return DistrictName; } public C2BSchoolGeneric setDistrictName(String value) { this.DistrictName = value; return this; } public Integer getTeacherCount() { return TeacherCount; } public C2BSchoolGeneric setTeacherCount(Integer value) { this.TeacherCount = value; return this; } public String getTopic() { return Topic; } public C2BSchoolGeneric setTopic(String value) { this.Topic = value; return this; } public Long getId() { return Id; } public C2BSchoolGeneric setId(Long value) { this.Id = value; return this; } public C2BDeliveryInfo getDeliveryInfo() { return DeliveryInfo; } public C2BSchoolGeneric setDeliveryInfo(C2BDeliveryInfo value) { this.DeliveryInfo = value; return this; } public Long getAimSchoolId() { return AIMSchoolId; } public C2BSchoolGeneric setAimSchoolId(Long value) { this.AIMSchoolId = value; return this; } } @DataContract public static class C2BDeliveryInfo { @DataMember public Date FirstDelivery = null; @DataMember public Date DeliveryTime = null; @DataMember public Integer DeliveryThreshold = null; @DataMember public Boolean SundayDelivery = null; @DataMember public Boolean MondayDelivery = null; @DataMember public Boolean TuesdayDelivery = null; @DataMember public Boolean WednesdayDelivery = null; @DataMember public Boolean ThursdayDelivery = null; @DataMember public Boolean FridayDelivery = null; @DataMember public Boolean SaturdayDelivery = null; public Date getFirstDelivery() { return FirstDelivery; } public C2BDeliveryInfo setFirstDelivery(Date value) { this.FirstDelivery = value; return this; } public Date getDeliveryTime() { return DeliveryTime; } public C2BDeliveryInfo setDeliveryTime(Date value) { this.DeliveryTime = value; return this; } public Integer getDeliveryThreshold() { return DeliveryThreshold; } public C2BDeliveryInfo setDeliveryThreshold(Integer value) { this.DeliveryThreshold = value; return this; } public Boolean isSundayDelivery() { return SundayDelivery; } public C2BDeliveryInfo setSundayDelivery(Boolean value) { this.SundayDelivery = value; return this; } public Boolean isMondayDelivery() { return MondayDelivery; } public C2BDeliveryInfo setMondayDelivery(Boolean value) { this.MondayDelivery = value; return this; } public Boolean isTuesdayDelivery() { return TuesdayDelivery; } public C2BDeliveryInfo setTuesdayDelivery(Boolean value) { this.TuesdayDelivery = value; return this; } public Boolean isWednesdayDelivery() { return WednesdayDelivery; } public C2BDeliveryInfo setWednesdayDelivery(Boolean value) { this.WednesdayDelivery = value; return this; } public Boolean isThursdayDelivery() { return ThursdayDelivery; } public C2BDeliveryInfo setThursdayDelivery(Boolean value) { this.ThursdayDelivery = value; return this; } public Boolean isFridayDelivery() { return FridayDelivery; } public C2BDeliveryInfo setFridayDelivery(Boolean value) { this.FridayDelivery = value; return this; } public Boolean isSaturdayDelivery() { return SaturdayDelivery; } public C2BDeliveryInfo setSaturdayDelivery(Boolean value) { this.SaturdayDelivery = value; return this; } } @DataContract public static class BaseResponse { /** * */ @DataMember @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") public BaseResponseResult Status = null; public BaseResponseResult getStatus() { return Status; } public BaseResponse setStatus(BaseResponseResult value) { this.Status = value; return this; } } }