/* Options: Date: 2026-10-23 09:44:59 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: EquipmentDvirSignOffRequest.* //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="/v1/Equipment/{EquipmentID}/dvir/signoff", Verbs="POST,OPTIONS") public static class EquipmentDvirSignOffRequest implements IReturn { public Integer EquipmentID = null; public ArrayList Defects = new ArrayList(); public String MechanicName = null; public String SignaturePng = null; public Integer getEquipmentID() { return EquipmentID; } public EquipmentDvirSignOffRequest setEquipmentID(Integer value) { this.EquipmentID = value; return this; } public ArrayList getDefects() { return Defects; } public EquipmentDvirSignOffRequest setDefects(ArrayList value) { this.Defects = value; return this; } public String getMechanicName() { return MechanicName; } public EquipmentDvirSignOffRequest setMechanicName(String value) { this.MechanicName = value; return this; } public String getSignaturePng() { return SignaturePng; } public EquipmentDvirSignOffRequest setSignaturePng(String value) { this.SignaturePng = value; return this; } private static Object responseType = EquipmentDvirSignOffResponse.class; public Object getResponseType() { return responseType; } } public static class EquipmentDvirSignOffResponse { public DvirVehicleDetail Vehicle = null; public Boolean Returned = null; public ResponseStatus ResponseStatus = null; public DvirVehicleDetail getVehicle() { return Vehicle; } public EquipmentDvirSignOffResponse setVehicle(DvirVehicleDetail value) { this.Vehicle = value; return this; } public Boolean isReturned() { return Returned; } public EquipmentDvirSignOffResponse setReturned(Boolean value) { this.Returned = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public EquipmentDvirSignOffResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class DvirSignOffItem { public Integer DvirDefectID = null; public String Outcome = null; public String Note = null; public String ScheduledFor = null; public Integer getDvirDefectID() { return DvirDefectID; } public DvirSignOffItem setDvirDefectID(Integer value) { this.DvirDefectID = value; return this; } public String getOutcome() { return Outcome; } public DvirSignOffItem setOutcome(String value) { this.Outcome = value; return this; } public String getNote() { return Note; } public DvirSignOffItem setNote(String value) { this.Note = value; return this; } public String getScheduledFor() { return ScheduledFor; } public DvirSignOffItem setScheduledFor(String value) { this.ScheduledFor = value; return this; } } public static class DvirVehicleDetail extends DvirVehicleView { public String Plate = null; public String VIN = null; public Integer GvwrLbs = null; public String BranchName = null; public Date InspectionDue = null; public Date InsuranceExpires = null; public ArrayList RecentlyFixed = new ArrayList(); public ArrayList ReviewReports = new ArrayList(); public ArrayList History = new ArrayList(); public String getPlate() { return Plate; } public DvirVehicleDetail setPlate(String value) { this.Plate = value; return this; } public String getVin() { return VIN; } public DvirVehicleDetail setVin(String value) { this.VIN = value; return this; } public Integer getGvwrLbs() { return GvwrLbs; } public DvirVehicleDetail setGvwrLbs(Integer value) { this.GvwrLbs = value; return this; } public String getBranchName() { return BranchName; } public DvirVehicleDetail setBranchName(String value) { this.BranchName = value; return this; } public Date getInspectionDue() { return InspectionDue; } public DvirVehicleDetail setInspectionDue(Date value) { this.InspectionDue = value; return this; } public Date getInsuranceExpires() { return InsuranceExpires; } public DvirVehicleDetail setInsuranceExpires(Date value) { this.InsuranceExpires = value; return this; } public ArrayList getRecentlyFixed() { return RecentlyFixed; } public DvirVehicleDetail setRecentlyFixed(ArrayList value) { this.RecentlyFixed = value; return this; } public ArrayList getReviewReports() { return ReviewReports; } public DvirVehicleDetail setReviewReports(ArrayList value) { this.ReviewReports = value; return this; } public ArrayList getHistory() { return History; } public DvirVehicleDetail setHistory(ArrayList value) { this.History = value; return this; } } public static class DvirReportView { public Integer DvirReportID = null; public String Number = null; public String Kind = null; public String KindText = null; public Integer EquipmentID = null; public String Unit = null; public ArrayList Trailers = new ArrayList(); public Integer ContactID = null; public String DriverName = null; public String Board = null; public String ForDate = null; public Date FiledAtUtc = null; public Date SavedAtUtc = null; public Boolean IsLate = null; public Boolean IsAway = null; public Boolean IsSatisfactory = null; public Integer Odometer = null; public String LocationText = null; public String Remarks = null; public String ReviewedByName = null; public Date ReviewedAtUtc = null; public String Chip = null; public ArrayList Defects = new ArrayList(); public ArrayList Signatures = new ArrayList(); public Integer getDvirReportID() { return DvirReportID; } public DvirReportView setDvirReportID(Integer value) { this.DvirReportID = value; return this; } public String getNumber() { return Number; } public DvirReportView setNumber(String value) { this.Number = value; return this; } public String getKind() { return Kind; } public DvirReportView setKind(String value) { this.Kind = value; return this; } public String getKindText() { return KindText; } public DvirReportView setKindText(String value) { this.KindText = value; return this; } public Integer getEquipmentID() { return EquipmentID; } public DvirReportView setEquipmentID(Integer value) { this.EquipmentID = value; return this; } public String getUnit() { return Unit; } public DvirReportView setUnit(String value) { this.Unit = value; return this; } public ArrayList getTrailers() { return Trailers; } public DvirReportView setTrailers(ArrayList value) { this.Trailers = value; return this; } public Integer getContactID() { return ContactID; } public DvirReportView setContactID(Integer value) { this.ContactID = value; return this; } public String getDriverName() { return DriverName; } public DvirReportView setDriverName(String value) { this.DriverName = value; return this; } public String getBoard() { return Board; } public DvirReportView setBoard(String value) { this.Board = value; return this; } public String getForDate() { return ForDate; } public DvirReportView setForDate(String value) { this.ForDate = value; return this; } public Date getFiledAtUtc() { return FiledAtUtc; } public DvirReportView setFiledAtUtc(Date value) { this.FiledAtUtc = value; return this; } public Date getSavedAtUtc() { return SavedAtUtc; } public DvirReportView setSavedAtUtc(Date value) { this.SavedAtUtc = value; return this; } public Boolean getIsLate() { return IsLate; } public DvirReportView setIsLate(Boolean value) { this.IsLate = value; return this; } public Boolean getIsAway() { return IsAway; } public DvirReportView setIsAway(Boolean value) { this.IsAway = value; return this; } public Boolean getIsSatisfactory() { return IsSatisfactory; } public DvirReportView setIsSatisfactory(Boolean value) { this.IsSatisfactory = value; return this; } public Integer getOdometer() { return Odometer; } public DvirReportView setOdometer(Integer value) { this.Odometer = value; return this; } public String getLocationText() { return LocationText; } public DvirReportView setLocationText(String value) { this.LocationText = value; return this; } public String getRemarks() { return Remarks; } public DvirReportView setRemarks(String value) { this.Remarks = value; return this; } public String getReviewedByName() { return ReviewedByName; } public DvirReportView setReviewedByName(String value) { this.ReviewedByName = value; return this; } public Date getReviewedAtUtc() { return ReviewedAtUtc; } public DvirReportView setReviewedAtUtc(Date value) { this.ReviewedAtUtc = value; return this; } public String getChip() { return Chip; } public DvirReportView setChip(String value) { this.Chip = value; return this; } public ArrayList getDefects() { return Defects; } public DvirReportView setDefects(ArrayList value) { this.Defects = value; return this; } public ArrayList getSignatures() { return Signatures; } public DvirReportView setSignatures(ArrayList value) { this.Signatures = value; return this; } } public static class DvirDefectView { public Integer DvirDefectID = null; public String ClientKey = null; public Integer DvirReportID = null; public String ReportNumber = null; public Integer EquipmentID = null; public String Unit = null; public String ItemKey = null; public String Label = null; public String FormLine = null; public Boolean IsCustom = null; public String Severity = null; public String SeverityText = null; public String Note = null; public String Source = null; public String ReportedByName = null; public Date ReportedAtUtc = null; public Integer EquipmentMaintenanceID = null; public String Outcome = null; public String OutcomeText = null; public String OutcomeNote = null; public String ScheduledFor = null; public String SignedOffByName = null; public Date SignedOffAtUtc = null; public Boolean IsOpen = null; public Boolean Withdrawn = null; public Integer PhotoCount = null; public ArrayList Photos = new ArrayList(); public Integer getDvirDefectID() { return DvirDefectID; } public DvirDefectView setDvirDefectID(Integer value) { this.DvirDefectID = value; return this; } public String getClientKey() { return ClientKey; } public DvirDefectView setClientKey(String value) { this.ClientKey = value; return this; } public Integer getDvirReportID() { return DvirReportID; } public DvirDefectView setDvirReportID(Integer value) { this.DvirReportID = value; return this; } public String getReportNumber() { return ReportNumber; } public DvirDefectView setReportNumber(String value) { this.ReportNumber = value; return this; } public Integer getEquipmentID() { return EquipmentID; } public DvirDefectView setEquipmentID(Integer value) { this.EquipmentID = value; return this; } public String getUnit() { return Unit; } public DvirDefectView setUnit(String value) { this.Unit = value; return this; } public String getItemKey() { return ItemKey; } public DvirDefectView setItemKey(String value) { this.ItemKey = value; return this; } public String getLabel() { return Label; } public DvirDefectView setLabel(String value) { this.Label = value; return this; } public String getFormLine() { return FormLine; } public DvirDefectView setFormLine(String value) { this.FormLine = value; return this; } public Boolean getIsCustom() { return IsCustom; } public DvirDefectView setIsCustom(Boolean value) { this.IsCustom = value; return this; } public String getSeverity() { return Severity; } public DvirDefectView setSeverity(String value) { this.Severity = value; return this; } public String getSeverityText() { return SeverityText; } public DvirDefectView setSeverityText(String value) { this.SeverityText = value; return this; } public String getNote() { return Note; } public DvirDefectView setNote(String value) { this.Note = value; return this; } public String getSource() { return Source; } public DvirDefectView setSource(String value) { this.Source = value; return this; } public String getReportedByName() { return ReportedByName; } public DvirDefectView setReportedByName(String value) { this.ReportedByName = value; return this; } public Date getReportedAtUtc() { return ReportedAtUtc; } public DvirDefectView setReportedAtUtc(Date value) { this.ReportedAtUtc = value; return this; } public Integer getEquipmentMaintenanceID() { return EquipmentMaintenanceID; } public DvirDefectView setEquipmentMaintenanceID(Integer value) { this.EquipmentMaintenanceID = value; return this; } public String getOutcome() { return Outcome; } public DvirDefectView setOutcome(String value) { this.Outcome = value; return this; } public String getOutcomeText() { return OutcomeText; } public DvirDefectView setOutcomeText(String value) { this.OutcomeText = value; return this; } public String getOutcomeNote() { return OutcomeNote; } public DvirDefectView setOutcomeNote(String value) { this.OutcomeNote = value; return this; } public String getScheduledFor() { return ScheduledFor; } public DvirDefectView setScheduledFor(String value) { this.ScheduledFor = value; return this; } public String getSignedOffByName() { return SignedOffByName; } public DvirDefectView setSignedOffByName(String value) { this.SignedOffByName = value; return this; } public Date getSignedOffAtUtc() { return SignedOffAtUtc; } public DvirDefectView setSignedOffAtUtc(Date value) { this.SignedOffAtUtc = value; return this; } public Boolean getIsOpen() { return IsOpen; } public DvirDefectView setIsOpen(Boolean value) { this.IsOpen = value; return this; } public Boolean isWithdrawn() { return Withdrawn; } public DvirDefectView setWithdrawn(Boolean value) { this.Withdrawn = value; return this; } public Integer getPhotoCount() { return PhotoCount; } public DvirDefectView setPhotoCount(Integer value) { this.PhotoCount = value; return this; } public ArrayList getPhotos() { return Photos; } public DvirDefectView setPhotos(ArrayList value) { this.Photos = value; return this; } } public static class DvirVehicleView { public Integer EquipmentID = null; public String Unit = null; public String Name = null; public String VehicleType = null; public Boolean IsTrailer = null; public String VehicleStatus = null; public String Status = null; public String StatusText = null; public String Line = null; public String FirstUnsafeReport = null; public Integer OpenCount = null; public String LocalToday = null; public Boolean NeedsPreTrip = null; public Boolean NeedsReview = null; public ArrayList ReviewReportIds = new ArrayList(); public ArrayList Trailers = new ArrayList(); public Integer LastOdometer = null; public String InUseBy = null; public Boolean DrivingNow = null; public Integer TodayPreTripId = null; public Integer TodayPostTripId = null; public ArrayList OpenDefects = new ArrayList(); public Integer getEquipmentID() { return EquipmentID; } public DvirVehicleView setEquipmentID(Integer value) { this.EquipmentID = value; return this; } public String getUnit() { return Unit; } public DvirVehicleView setUnit(String value) { this.Unit = value; return this; } public String getName() { return Name; } public DvirVehicleView setName(String value) { this.Name = value; return this; } public String getVehicleType() { return VehicleType; } public DvirVehicleView setVehicleType(String value) { this.VehicleType = value; return this; } public Boolean getIsTrailer() { return IsTrailer; } public DvirVehicleView setIsTrailer(Boolean value) { this.IsTrailer = value; return this; } public String getVehicleStatus() { return VehicleStatus; } public DvirVehicleView setVehicleStatus(String value) { this.VehicleStatus = value; return this; } public String getStatus() { return Status; } public DvirVehicleView setStatus(String value) { this.Status = value; return this; } public String getStatusText() { return StatusText; } public DvirVehicleView setStatusText(String value) { this.StatusText = value; return this; } public String getLine() { return Line; } public DvirVehicleView setLine(String value) { this.Line = value; return this; } public String getFirstUnsafeReport() { return FirstUnsafeReport; } public DvirVehicleView setFirstUnsafeReport(String value) { this.FirstUnsafeReport = value; return this; } public Integer getOpenCount() { return OpenCount; } public DvirVehicleView setOpenCount(Integer value) { this.OpenCount = value; return this; } public String getLocalToday() { return LocalToday; } public DvirVehicleView setLocalToday(String value) { this.LocalToday = value; return this; } public Boolean isNeedsPreTrip() { return NeedsPreTrip; } public DvirVehicleView setNeedsPreTrip(Boolean value) { this.NeedsPreTrip = value; return this; } public Boolean isNeedsReview() { return NeedsReview; } public DvirVehicleView setNeedsReview(Boolean value) { this.NeedsReview = value; return this; } public ArrayList getReviewReportIds() { return ReviewReportIds; } public DvirVehicleView setReviewReportIds(ArrayList value) { this.ReviewReportIds = value; return this; } public ArrayList getTrailers() { return Trailers; } public DvirVehicleView setTrailers(ArrayList value) { this.Trailers = value; return this; } public Integer getLastOdometer() { return LastOdometer; } public DvirVehicleView setLastOdometer(Integer value) { this.LastOdometer = value; return this; } public String getInUseBy() { return InUseBy; } public DvirVehicleView setInUseBy(String value) { this.InUseBy = value; return this; } public Boolean isDrivingNow() { return DrivingNow; } public DvirVehicleView setDrivingNow(Boolean value) { this.DrivingNow = value; return this; } public Integer getTodayPreTripId() { return TodayPreTripId; } public DvirVehicleView setTodayPreTripId(Integer value) { this.TodayPreTripId = value; return this; } public Integer getTodayPostTripId() { return TodayPostTripId; } public DvirVehicleView setTodayPostTripId(Integer value) { this.TodayPostTripId = value; return this; } public ArrayList getOpenDefects() { return OpenDefects; } public DvirVehicleView setOpenDefects(ArrayList value) { this.OpenDefects = value; return this; } } public static class DvirUnitRef { public Integer EquipmentID = null; public String Unit = null; public Integer getEquipmentID() { return EquipmentID; } public DvirUnitRef setEquipmentID(Integer value) { this.EquipmentID = value; return this; } public String getUnit() { return Unit; } public DvirUnitRef setUnit(String value) { this.Unit = value; return this; } } public static class DvirSignatureView { public Integer SignatureRecordID = null; public String Role = null; public String SignerName = null; public Date SignedAt = null; public String ImageUrl = null; public Integer getSignatureRecordID() { return SignatureRecordID; } public DvirSignatureView setSignatureRecordID(Integer value) { this.SignatureRecordID = value; return this; } public String getRole() { return Role; } public DvirSignatureView setRole(String value) { this.Role = value; return this; } public String getSignerName() { return SignerName; } public DvirSignatureView setSignerName(String value) { this.SignerName = value; return this; } public Date getSignedAt() { return SignedAt; } public DvirSignatureView setSignedAt(Date value) { this.SignedAt = value; return this; } public String getImageUrl() { return ImageUrl; } public DvirSignatureView setImageUrl(String value) { this.ImageUrl = value; return this; } } public static class DvirPhotoView { public Integer WorkPhotoID = null; public String DefectKey = null; public String Url = null; public String MarkedUrl = null; public Date CapturedAtUtc = null; public BigDecimal Lat = null; public BigDecimal Lng = null; public Integer getWorkPhotoID() { return WorkPhotoID; } public DvirPhotoView setWorkPhotoID(Integer value) { this.WorkPhotoID = value; return this; } public String getDefectKey() { return DefectKey; } public DvirPhotoView setDefectKey(String value) { this.DefectKey = value; return this; } public String getUrl() { return Url; } public DvirPhotoView setUrl(String value) { this.Url = value; return this; } public String getMarkedUrl() { return MarkedUrl; } public DvirPhotoView setMarkedUrl(String value) { this.MarkedUrl = value; return this; } public Date getCapturedAtUtc() { return CapturedAtUtc; } public DvirPhotoView setCapturedAtUtc(Date value) { this.CapturedAtUtc = value; return this; } public BigDecimal getLat() { return Lat; } public DvirPhotoView setLat(BigDecimal value) { this.Lat = value; return this; } public BigDecimal getLng() { return Lng; } public DvirPhotoView setLng(BigDecimal value) { this.Lng = value; return this; } } }