/* Options: Date: 2026-10-12 01:36:40 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: CourierOrderUnitsRequest.* //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/dispatch/courier/orders/{Code}/units", Verbs="POST,OPTIONS") public static class CourierOrderUnitsRequest implements IReturn { public String Code = null; public Integer Units = null; public String getCode() { return Code; } public CourierOrderUnitsRequest setCode(String value) { this.Code = value; return this; } public Integer getUnits() { return Units; } public CourierOrderUnitsRequest setUnits(Integer value) { this.Units = value; return this; } private static Object responseType = CourierOrderResponse.class; public Object getResponseType() { return responseType; } } public static class CourierOrderResponse { public ArrayList Orders = new ArrayList(); public CourierOrderView Order = null; public String Message = null; public ResponseStatus ResponseStatus = null; public ArrayList getOrders() { return Orders; } public CourierOrderResponse setOrders(ArrayList value) { this.Orders = value; return this; } public CourierOrderView getOrder() { return Order; } public CourierOrderResponse setOrder(CourierOrderView value) { this.Order = value; return this; } public String getMessage() { return Message; } public CourierOrderResponse setMessage(String value) { this.Message = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public CourierOrderResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class CourierOrderView { public Integer DispatchOdRequestID = null; public String Code = null; public Integer CourierProfileId = null; public String ProfileName = null; public String RouteShape = null; public String UnitOne = null; public String UnitMany = null; public Integer CourierFacilityId = null; public String FacilityName = null; public String ServiceLevelCode = null; public String LevelName = null; public String Source = null; public String Address = null; public String Unit = null; public String City = null; public String Zip = null; public String Zone = null; public String PickupContactName = null; public String DropoffAddress = null; public String DropoffUnit = null; public String DropoffCity = null; public String DropoffZip = null; public String DropoffContactName = null; public BigDecimal Miles = null; public Integer Units = null; public Integer UnitsFound = null; public String Stage = null; public String CourierStep = null; public String StepLabel = null; public String DriverCode = null; public String DriverName = null; public Integer DriverContactId = null; public Integer CourierRunId = null; public String RunCode = null; public Integer StopSequence = null; public Integer QueueSequence = null; public Boolean IsAsap = null; public Date WindowStartUtc = null; public Date WindowEndUtc = null; public String WindowText = null; public Date DueUtc = null; public String DueText = null; public Date PingAfterUtc = null; public Date PingExpiresUtc = null; public String CandidateCode = null; public String HeldReason = null; public Date HeldUtc = null; public String CustomerName = null; public String CustomerPhone = null; public String Handoff = null; public String GateCode = null; public String Instructions = null; public String DamageNote = null; public String DeliveredToName = null; public String PayMode = null; public BigDecimal Fare = null; public BigDecimal FinalPrice = null; public BigDecimal TipAmount = null; public String CancelledBy = null; public String CancelReason = null; public BigDecimal CancelFeeApplied = null; public BigDecimal MissedFeeApplied = null; public String CaptureMode = null; public BigDecimal AuthorizedAmount = null; public BigDecimal CapturedAmount = null; public BigDecimal RefundedAmount = null; public String ChargeError = null; public Date CreatedAt = null; public Date ArrivedUtc = null; public Date PickedUpUtc = null; public Date IntakeUtc = null; public Date ReadyUtc = null; public Date OutForDeliveryUtc = null; public Date DeliveredUtc = null; public Date MissedUtc = null; public Date CancelledUtc = null; public Boolean IsClosed = null; public Integer RebookOfId = null; public Integer RecurrenceId = null; public Integer PickupLoadId = null; public CourierOrderRuleView Rule = null; public ArrayList Items = new ArrayList(); public ArrayList Scans = new ArrayList(); public ArrayList Proof = new ArrayList(); public ArrayList Events = new ArrayList(); public ArrayList Photos = new ArrayList(); public ArrayList PayLines = new ArrayList(); public Integer getDispatchOdRequestID() { return DispatchOdRequestID; } public CourierOrderView setDispatchOdRequestID(Integer value) { this.DispatchOdRequestID = value; return this; } public String getCode() { return Code; } public CourierOrderView setCode(String value) { this.Code = value; return this; } public Integer getCourierProfileId() { return CourierProfileId; } public CourierOrderView setCourierProfileId(Integer value) { this.CourierProfileId = value; return this; } public String getProfileName() { return ProfileName; } public CourierOrderView setProfileName(String value) { this.ProfileName = value; return this; } public String getRouteShape() { return RouteShape; } public CourierOrderView setRouteShape(String value) { this.RouteShape = value; return this; } public String getUnitOne() { return UnitOne; } public CourierOrderView setUnitOne(String value) { this.UnitOne = value; return this; } public String getUnitMany() { return UnitMany; } public CourierOrderView setUnitMany(String value) { this.UnitMany = value; return this; } public Integer getCourierFacilityId() { return CourierFacilityId; } public CourierOrderView setCourierFacilityId(Integer value) { this.CourierFacilityId = value; return this; } public String getFacilityName() { return FacilityName; } public CourierOrderView setFacilityName(String value) { this.FacilityName = value; return this; } public String getServiceLevelCode() { return ServiceLevelCode; } public CourierOrderView setServiceLevelCode(String value) { this.ServiceLevelCode = value; return this; } public String getLevelName() { return LevelName; } public CourierOrderView setLevelName(String value) { this.LevelName = value; return this; } public String getSource() { return Source; } public CourierOrderView setSource(String value) { this.Source = value; return this; } public String getAddress() { return Address; } public CourierOrderView setAddress(String value) { this.Address = value; return this; } public String getUnit() { return Unit; } public CourierOrderView setUnit(String value) { this.Unit = value; return this; } public String getCity() { return City; } public CourierOrderView setCity(String value) { this.City = value; return this; } public String getZip() { return Zip; } public CourierOrderView setZip(String value) { this.Zip = value; return this; } public String getZone() { return Zone; } public CourierOrderView setZone(String value) { this.Zone = value; return this; } public String getPickupContactName() { return PickupContactName; } public CourierOrderView setPickupContactName(String value) { this.PickupContactName = value; return this; } public String getDropoffAddress() { return DropoffAddress; } public CourierOrderView setDropoffAddress(String value) { this.DropoffAddress = value; return this; } public String getDropoffUnit() { return DropoffUnit; } public CourierOrderView setDropoffUnit(String value) { this.DropoffUnit = value; return this; } public String getDropoffCity() { return DropoffCity; } public CourierOrderView setDropoffCity(String value) { this.DropoffCity = value; return this; } public String getDropoffZip() { return DropoffZip; } public CourierOrderView setDropoffZip(String value) { this.DropoffZip = value; return this; } public String getDropoffContactName() { return DropoffContactName; } public CourierOrderView setDropoffContactName(String value) { this.DropoffContactName = value; return this; } public BigDecimal getMiles() { return Miles; } public CourierOrderView setMiles(BigDecimal value) { this.Miles = value; return this; } public Integer getUnits() { return Units; } public CourierOrderView setUnits(Integer value) { this.Units = value; return this; } public Integer getUnitsFound() { return UnitsFound; } public CourierOrderView setUnitsFound(Integer value) { this.UnitsFound = value; return this; } public String getStage() { return Stage; } public CourierOrderView setStage(String value) { this.Stage = value; return this; } public String getCourierStep() { return CourierStep; } public CourierOrderView setCourierStep(String value) { this.CourierStep = value; return this; } public String getStepLabel() { return StepLabel; } public CourierOrderView setStepLabel(String value) { this.StepLabel = value; return this; } public String getDriverCode() { return DriverCode; } public CourierOrderView setDriverCode(String value) { this.DriverCode = value; return this; } public String getDriverName() { return DriverName; } public CourierOrderView setDriverName(String value) { this.DriverName = value; return this; } public Integer getDriverContactId() { return DriverContactId; } public CourierOrderView setDriverContactId(Integer value) { this.DriverContactId = value; return this; } public Integer getCourierRunId() { return CourierRunId; } public CourierOrderView setCourierRunId(Integer value) { this.CourierRunId = value; return this; } public String getRunCode() { return RunCode; } public CourierOrderView setRunCode(String value) { this.RunCode = value; return this; } public Integer getStopSequence() { return StopSequence; } public CourierOrderView setStopSequence(Integer value) { this.StopSequence = value; return this; } public Integer getQueueSequence() { return QueueSequence; } public CourierOrderView setQueueSequence(Integer value) { this.QueueSequence = value; return this; } public Boolean getIsAsap() { return IsAsap; } public CourierOrderView setIsAsap(Boolean value) { this.IsAsap = value; return this; } public Date getWindowStartUtc() { return WindowStartUtc; } public CourierOrderView setWindowStartUtc(Date value) { this.WindowStartUtc = value; return this; } public Date getWindowEndUtc() { return WindowEndUtc; } public CourierOrderView setWindowEndUtc(Date value) { this.WindowEndUtc = value; return this; } public String getWindowText() { return WindowText; } public CourierOrderView setWindowText(String value) { this.WindowText = value; return this; } public Date getDueUtc() { return DueUtc; } public CourierOrderView setDueUtc(Date value) { this.DueUtc = value; return this; } public String getDueText() { return DueText; } public CourierOrderView setDueText(String value) { this.DueText = value; return this; } public Date getPingAfterUtc() { return PingAfterUtc; } public CourierOrderView setPingAfterUtc(Date value) { this.PingAfterUtc = value; return this; } public Date getPingExpiresUtc() { return PingExpiresUtc; } public CourierOrderView setPingExpiresUtc(Date value) { this.PingExpiresUtc = value; return this; } public String getCandidateCode() { return CandidateCode; } public CourierOrderView setCandidateCode(String value) { this.CandidateCode = value; return this; } public String getHeldReason() { return HeldReason; } public CourierOrderView setHeldReason(String value) { this.HeldReason = value; return this; } public Date getHeldUtc() { return HeldUtc; } public CourierOrderView setHeldUtc(Date value) { this.HeldUtc = value; return this; } public String getCustomerName() { return CustomerName; } public CourierOrderView setCustomerName(String value) { this.CustomerName = value; return this; } public String getCustomerPhone() { return CustomerPhone; } public CourierOrderView setCustomerPhone(String value) { this.CustomerPhone = value; return this; } public String getHandoff() { return Handoff; } public CourierOrderView setHandoff(String value) { this.Handoff = value; return this; } public String getGateCode() { return GateCode; } public CourierOrderView setGateCode(String value) { this.GateCode = value; return this; } public String getInstructions() { return Instructions; } public CourierOrderView setInstructions(String value) { this.Instructions = value; return this; } public String getDamageNote() { return DamageNote; } public CourierOrderView setDamageNote(String value) { this.DamageNote = value; return this; } public String getDeliveredToName() { return DeliveredToName; } public CourierOrderView setDeliveredToName(String value) { this.DeliveredToName = value; return this; } public String getPayMode() { return PayMode; } public CourierOrderView setPayMode(String value) { this.PayMode = value; return this; } public BigDecimal getFare() { return Fare; } public CourierOrderView setFare(BigDecimal value) { this.Fare = value; return this; } public BigDecimal getFinalPrice() { return FinalPrice; } public CourierOrderView setFinalPrice(BigDecimal value) { this.FinalPrice = value; return this; } public BigDecimal getTipAmount() { return TipAmount; } public CourierOrderView setTipAmount(BigDecimal value) { this.TipAmount = value; return this; } public String getCancelledBy() { return CancelledBy; } public CourierOrderView setCancelledBy(String value) { this.CancelledBy = value; return this; } public String getCancelReason() { return CancelReason; } public CourierOrderView setCancelReason(String value) { this.CancelReason = value; return this; } public BigDecimal getCancelFeeApplied() { return CancelFeeApplied; } public CourierOrderView setCancelFeeApplied(BigDecimal value) { this.CancelFeeApplied = value; return this; } public BigDecimal getMissedFeeApplied() { return MissedFeeApplied; } public CourierOrderView setMissedFeeApplied(BigDecimal value) { this.MissedFeeApplied = value; return this; } public String getCaptureMode() { return CaptureMode; } public CourierOrderView setCaptureMode(String value) { this.CaptureMode = value; return this; } public BigDecimal getAuthorizedAmount() { return AuthorizedAmount; } public CourierOrderView setAuthorizedAmount(BigDecimal value) { this.AuthorizedAmount = value; return this; } public BigDecimal getCapturedAmount() { return CapturedAmount; } public CourierOrderView setCapturedAmount(BigDecimal value) { this.CapturedAmount = value; return this; } public BigDecimal getRefundedAmount() { return RefundedAmount; } public CourierOrderView setRefundedAmount(BigDecimal value) { this.RefundedAmount = value; return this; } public String getChargeError() { return ChargeError; } public CourierOrderView setChargeError(String value) { this.ChargeError = value; return this; } public Date getCreatedAt() { return CreatedAt; } public CourierOrderView setCreatedAt(Date value) { this.CreatedAt = value; return this; } public Date getArrivedUtc() { return ArrivedUtc; } public CourierOrderView setArrivedUtc(Date value) { this.ArrivedUtc = value; return this; } public Date getPickedUpUtc() { return PickedUpUtc; } public CourierOrderView setPickedUpUtc(Date value) { this.PickedUpUtc = value; return this; } public Date getIntakeUtc() { return IntakeUtc; } public CourierOrderView setIntakeUtc(Date value) { this.IntakeUtc = value; return this; } public Date getReadyUtc() { return ReadyUtc; } public CourierOrderView setReadyUtc(Date value) { this.ReadyUtc = value; return this; } public Date getOutForDeliveryUtc() { return OutForDeliveryUtc; } public CourierOrderView setOutForDeliveryUtc(Date value) { this.OutForDeliveryUtc = value; return this; } public Date getDeliveredUtc() { return DeliveredUtc; } public CourierOrderView setDeliveredUtc(Date value) { this.DeliveredUtc = value; return this; } public Date getMissedUtc() { return MissedUtc; } public CourierOrderView setMissedUtc(Date value) { this.MissedUtc = value; return this; } public Date getCancelledUtc() { return CancelledUtc; } public CourierOrderView setCancelledUtc(Date value) { this.CancelledUtc = value; return this; } public Boolean getIsClosed() { return IsClosed; } public CourierOrderView setIsClosed(Boolean value) { this.IsClosed = value; return this; } public Integer getRebookOfId() { return RebookOfId; } public CourierOrderView setRebookOfId(Integer value) { this.RebookOfId = value; return this; } public Integer getRecurrenceId() { return RecurrenceId; } public CourierOrderView setRecurrenceId(Integer value) { this.RecurrenceId = value; return this; } public Integer getPickupLoadId() { return PickupLoadId; } public CourierOrderView setPickupLoadId(Integer value) { this.PickupLoadId = value; return this; } public CourierOrderRuleView getRule() { return Rule; } public CourierOrderView setRule(CourierOrderRuleView value) { this.Rule = value; return this; } public ArrayList getItems() { return Items; } public CourierOrderView setItems(ArrayList value) { this.Items = value; return this; } public ArrayList getScans() { return Scans; } public CourierOrderView setScans(ArrayList value) { this.Scans = value; return this; } public ArrayList getProof() { return Proof; } public CourierOrderView setProof(ArrayList value) { this.Proof = value; return this; } public ArrayList getEvents() { return Events; } public CourierOrderView setEvents(ArrayList value) { this.Events = value; return this; } public ArrayList getPhotos() { return Photos; } public CourierOrderView setPhotos(ArrayList value) { this.Photos = value; return this; } public ArrayList getPayLines() { return PayLines; } public CourierOrderView setPayLines(ArrayList value) { this.PayLines = value; return this; } } public static class CourierOrderRuleView { public Integer PingSecs = null; public Integer MissedWaitMin = null; public BigDecimal MissedFee = null; public BigDecimal CancelFee = null; public Boolean MissedAutoRebook = null; public Boolean MissedRequireContact = null; public Boolean MissedRequirePhoto = null; public String PayTiming = null; public Boolean FinalPriceAfterCount = null; public String PayPlanName = null; public BigDecimal PerPickup = null; public BigDecimal PerStop = null; public BigDecimal PerMissed = null; public BigDecimal PerCancel = null; public Date AcceptedUtc = null; public HashMap Proof = new HashMap(); public Integer getPingSecs() { return PingSecs; } public CourierOrderRuleView setPingSecs(Integer value) { this.PingSecs = value; return this; } public Integer getMissedWaitMin() { return MissedWaitMin; } public CourierOrderRuleView setMissedWaitMin(Integer value) { this.MissedWaitMin = value; return this; } public BigDecimal getMissedFee() { return MissedFee; } public CourierOrderRuleView setMissedFee(BigDecimal value) { this.MissedFee = value; return this; } public BigDecimal getCancelFee() { return CancelFee; } public CourierOrderRuleView setCancelFee(BigDecimal value) { this.CancelFee = value; return this; } public Boolean isMissedAutoRebook() { return MissedAutoRebook; } public CourierOrderRuleView setMissedAutoRebook(Boolean value) { this.MissedAutoRebook = value; return this; } public Boolean isMissedRequireContact() { return MissedRequireContact; } public CourierOrderRuleView setMissedRequireContact(Boolean value) { this.MissedRequireContact = value; return this; } public Boolean isMissedRequirePhoto() { return MissedRequirePhoto; } public CourierOrderRuleView setMissedRequirePhoto(Boolean value) { this.MissedRequirePhoto = value; return this; } public String getPayTiming() { return PayTiming; } public CourierOrderRuleView setPayTiming(String value) { this.PayTiming = value; return this; } public Boolean isFinalPriceAfterCount() { return FinalPriceAfterCount; } public CourierOrderRuleView setFinalPriceAfterCount(Boolean value) { this.FinalPriceAfterCount = value; return this; } public String getPayPlanName() { return PayPlanName; } public CourierOrderRuleView setPayPlanName(String value) { this.PayPlanName = value; return this; } public BigDecimal getPerPickup() { return PerPickup; } public CourierOrderRuleView setPerPickup(BigDecimal value) { this.PerPickup = value; return this; } public BigDecimal getPerStop() { return PerStop; } public CourierOrderRuleView setPerStop(BigDecimal value) { this.PerStop = value; return this; } public BigDecimal getPerMissed() { return PerMissed; } public CourierOrderRuleView setPerMissed(BigDecimal value) { this.PerMissed = value; return this; } public BigDecimal getPerCancel() { return PerCancel; } public CourierOrderRuleView setPerCancel(BigDecimal value) { this.PerCancel = value; return this; } public Date getAcceptedUtc() { return AcceptedUtc; } public CourierOrderRuleView setAcceptedUtc(Date value) { this.AcceptedUtc = value; return this; } public HashMap getProof() { return Proof; } public CourierOrderRuleView setProof(HashMap value) { this.Proof = value; return this; } } public static class CourierItemView { public Integer CourierItemID = null; public Integer DispatchOdRequestID = null; public Integer Seq = null; public String TagCode = null; public String Custody = null; public Boolean IsOpen = null; public Boolean IsMissing = null; public String MissingReason = null; public Boolean IsManual = null; public Boolean ReTagFlag = null; public Boolean Scanned = null; public Integer getCourierItemID() { return CourierItemID; } public CourierItemView setCourierItemID(Integer value) { this.CourierItemID = value; return this; } public Integer getDispatchOdRequestID() { return DispatchOdRequestID; } public CourierItemView setDispatchOdRequestID(Integer value) { this.DispatchOdRequestID = value; return this; } public Integer getSeq() { return Seq; } public CourierItemView setSeq(Integer value) { this.Seq = value; return this; } public String getTagCode() { return TagCode; } public CourierItemView setTagCode(String value) { this.TagCode = value; return this; } public String getCustody() { return Custody; } public CourierItemView setCustody(String value) { this.Custody = value; return this; } public Boolean getIsOpen() { return IsOpen; } public CourierItemView setIsOpen(Boolean value) { this.IsOpen = value; return this; } public Boolean getIsMissing() { return IsMissing; } public CourierItemView setIsMissing(Boolean value) { this.IsMissing = value; return this; } public String getMissingReason() { return MissingReason; } public CourierItemView setMissingReason(String value) { this.MissingReason = value; return this; } public Boolean getIsManual() { return IsManual; } public CourierItemView setIsManual(Boolean value) { this.IsManual = value; return this; } public Boolean isReTagFlag() { return ReTagFlag; } public CourierItemView setReTagFlag(Boolean value) { this.ReTagFlag = value; return this; } public Boolean isScanned() { return Scanned; } public CourierItemView setScanned(Boolean value) { this.Scanned = value; return this; } } public static class CourierScanView { public String TagCode = null; public String Stage = null; public String Result = null; public Date AtUtc = null; public String getTagCode() { return TagCode; } public CourierScanView setTagCode(String value) { this.TagCode = value; return this; } public String getStage() { return Stage; } public CourierScanView setStage(String value) { this.Stage = value; return this; } public String getResult() { return Result; } public CourierScanView setResult(String value) { this.Result = value; return this; } public Date getAtUtc() { return AtUtc; } public CourierScanView setAtUtc(Date value) { this.AtUtc = value; return this; } } public static class CourierProofResultView { public String Stage = null; public String StepKey = null; public String Value = null; public Date AtUtc = null; public String getStage() { return Stage; } public CourierProofResultView setStage(String value) { this.Stage = value; return this; } public String getStepKey() { return StepKey; } public CourierProofResultView setStepKey(String value) { this.StepKey = value; return this; } public String getValue() { return Value; } public CourierProofResultView setValue(String value) { this.Value = value; return this; } public Date getAtUtc() { return AtUtc; } public CourierProofResultView setAtUtc(Date value) { this.AtUtc = value; return this; } } public static class CourierEventView { public String Kind = null; public String Party = null; public String Body = null; public Date AtUtc = null; public String getKind() { return Kind; } public CourierEventView setKind(String value) { this.Kind = value; return this; } public String getParty() { return Party; } public CourierEventView setParty(String value) { this.Party = value; return this; } public String getBody() { return Body; } public CourierEventView setBody(String value) { this.Body = value; return this; } public Date getAtUtc() { return AtUtc; } public CourierEventView setAtUtc(Date value) { this.AtUtc = value; return this; } } public static class CourierPhotoView { public Integer PhotoId = null; public String Kind = null; public String FileName = null; public String Url = null; public Date TakenUtc = null; public Integer getPhotoId() { return PhotoId; } public CourierPhotoView setPhotoId(Integer value) { this.PhotoId = value; return this; } public String getKind() { return Kind; } public CourierPhotoView setKind(String value) { this.Kind = value; return this; } public String getFileName() { return FileName; } public CourierPhotoView setFileName(String value) { this.FileName = value; return this; } public String getUrl() { return Url; } public CourierPhotoView setUrl(String value) { this.Url = value; return this; } public Date getTakenUtc() { return TakenUtc; } public CourierPhotoView setTakenUtc(Date value) { this.TakenUtc = value; return this; } } public static class CourierPayLineView { public Integer DispatchLoadID = null; public String Kind = null; public String Label = null; public BigDecimal Qty = null; public BigDecimal Rate = null; public BigDecimal Amount = null; public Integer getDispatchLoadID() { return DispatchLoadID; } public CourierPayLineView setDispatchLoadID(Integer value) { this.DispatchLoadID = value; return this; } public String getKind() { return Kind; } public CourierPayLineView setKind(String value) { this.Kind = value; return this; } public String getLabel() { return Label; } public CourierPayLineView setLabel(String value) { this.Label = value; return this; } public BigDecimal getQty() { return Qty; } public CourierPayLineView setQty(BigDecimal value) { this.Qty = value; return this; } public BigDecimal getRate() { return Rate; } public CourierPayLineView setRate(BigDecimal value) { this.Rate = value; return this; } public BigDecimal getAmount() { return Amount; } public CourierPayLineView setAmount(BigDecimal value) { this.Amount = value; return this; } } }