| POST,OPTIONS | /v1/dispatch/courier/profiles/{Id}/reset |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CourierProfileResetRequest
{
public Integer Id = null;
public Boolean DryRun = null;
public Integer getId() { return Id; }
public CourierProfileResetRequest setId(Integer value) { this.Id = value; return this; }
public Boolean isDryRun() { return DryRun; }
public CourierProfileResetRequest setDryRun(Boolean value) { this.DryRun = value; return this; }
}
public static class CourierResponse
{
public ArrayList<CourierProfileSummary> Profiles = new ArrayList<CourierProfileSummary>();
public ArrayList<CourierTemplateOption> Templates = new ArrayList<CourierTemplateOption>();
public CourierProfileView Profile = null;
public ArrayList<CourierIssue> Issues = new ArrayList<CourierIssue>();
public ArrayList<CourierChange> Changes = new ArrayList<CourierChange>();
public CourierPreview Preview = null;
public ArrayList<CourierFleetVehicle> Fleet = new ArrayList<CourierFleetVehicle>();
public ResponseStatus ResponseStatus = null;
public ArrayList<CourierProfileSummary> getProfiles() { return Profiles; }
public CourierResponse setProfiles(ArrayList<CourierProfileSummary> value) { this.Profiles = value; return this; }
public ArrayList<CourierTemplateOption> getTemplates() { return Templates; }
public CourierResponse setTemplates(ArrayList<CourierTemplateOption> value) { this.Templates = value; return this; }
public CourierProfileView getProfile() { return Profile; }
public CourierResponse setProfile(CourierProfileView value) { this.Profile = value; return this; }
public ArrayList<CourierIssue> getIssues() { return Issues; }
public CourierResponse setIssues(ArrayList<CourierIssue> value) { this.Issues = value; return this; }
public ArrayList<CourierChange> getChanges() { return Changes; }
public CourierResponse setChanges(ArrayList<CourierChange> value) { this.Changes = value; return this; }
public CourierPreview getPreview() { return Preview; }
public CourierResponse setPreview(CourierPreview value) { this.Preview = value; return this; }
public ArrayList<CourierFleetVehicle> getFleet() { return Fleet; }
public CourierResponse setFleet(ArrayList<CourierFleetVehicle> value) { this.Fleet = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CourierResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CourierProfileSummary
{
public Integer CourierProfileID = null;
public String Code = null;
public String Name = null;
public String BusinessName = null;
public String RouteShape = null;
public Boolean Enabled = null;
public String TemplateFrom = null;
public Integer Drivers = null;
public Integer getCourierProfileID() { return CourierProfileID; }
public CourierProfileSummary setCourierProfileID(Integer value) { this.CourierProfileID = value; return this; }
public String getCode() { return Code; }
public CourierProfileSummary setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public CourierProfileSummary setName(String value) { this.Name = value; return this; }
public String getBusinessName() { return BusinessName; }
public CourierProfileSummary setBusinessName(String value) { this.BusinessName = value; return this; }
public String getRouteShape() { return RouteShape; }
public CourierProfileSummary setRouteShape(String value) { this.RouteShape = value; return this; }
public Boolean isEnabled() { return Enabled; }
public CourierProfileSummary setEnabled(Boolean value) { this.Enabled = value; return this; }
public String getTemplateFrom() { return TemplateFrom; }
public CourierProfileSummary setTemplateFrom(String value) { this.TemplateFrom = value; return this; }
public Integer getDrivers() { return Drivers; }
public CourierProfileSummary setDrivers(Integer value) { this.Drivers = value; return this; }
}
public static class CourierTemplateOption
{
public String Key = null;
public String Label = null;
public String Detail = null;
public String RouteShape = null;
public String getKey() { return Key; }
public CourierTemplateOption setKey(String value) { this.Key = value; return this; }
public String getLabel() { return Label; }
public CourierTemplateOption setLabel(String value) { this.Label = value; return this; }
public String getDetail() { return Detail; }
public CourierTemplateOption setDetail(String value) { this.Detail = value; return this; }
public String getRouteShape() { return RouteShape; }
public CourierTemplateOption setRouteShape(String value) { this.RouteShape = value; return this; }
}
public static class CourierProfileView
{
public Integer CourierProfileID = null;
public String Code = null;
public String Name = null;
public String BusinessName = null;
public String RouteShape = null;
public Boolean Enabled = null;
public String TemplateFrom = null;
public String UnitOne = null;
public String UnitMany = null;
public String FacilityNoun = null;
public String UnitOneEs = null;
public String UnitManyEs = null;
public String FacilityNounEs = null;
public String TagMode = null;
public ArrayList<String> TagFormats = new ArrayList<String>();
public CourierPay Pay = null;
public CourierDispatch Dispatch = null;
public CourierMissed Missed = null;
public CourierPrivacy Privacy = null;
public CourierPricing Pricing = null;
public CourierBooking Booking = null;
public ArrayList<CourierFacilityView> Facilities = new ArrayList<CourierFacilityView>();
public ArrayList<CourierVehicleView> Vehicles = new ArrayList<CourierVehicleView>();
public HashMap<String,HashMap<String,String>> Proof = new HashMap<String,HashMap<String,String>>();
public CourierProfileContext Context = null;
public Integer getCourierProfileID() { return CourierProfileID; }
public CourierProfileView setCourierProfileID(Integer value) { this.CourierProfileID = value; return this; }
public String getCode() { return Code; }
public CourierProfileView setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public CourierProfileView setName(String value) { this.Name = value; return this; }
public String getBusinessName() { return BusinessName; }
public CourierProfileView setBusinessName(String value) { this.BusinessName = value; return this; }
public String getRouteShape() { return RouteShape; }
public CourierProfileView setRouteShape(String value) { this.RouteShape = value; return this; }
public Boolean isEnabled() { return Enabled; }
public CourierProfileView setEnabled(Boolean value) { this.Enabled = value; return this; }
public String getTemplateFrom() { return TemplateFrom; }
public CourierProfileView setTemplateFrom(String value) { this.TemplateFrom = value; return this; }
public String getUnitOne() { return UnitOne; }
public CourierProfileView setUnitOne(String value) { this.UnitOne = value; return this; }
public String getUnitMany() { return UnitMany; }
public CourierProfileView setUnitMany(String value) { this.UnitMany = value; return this; }
public String getFacilityNoun() { return FacilityNoun; }
public CourierProfileView setFacilityNoun(String value) { this.FacilityNoun = value; return this; }
public String getUnitOneEs() { return UnitOneEs; }
public CourierProfileView setUnitOneEs(String value) { this.UnitOneEs = value; return this; }
public String getUnitManyEs() { return UnitManyEs; }
public CourierProfileView setUnitManyEs(String value) { this.UnitManyEs = value; return this; }
public String getFacilityNounEs() { return FacilityNounEs; }
public CourierProfileView setFacilityNounEs(String value) { this.FacilityNounEs = value; return this; }
public String getTagMode() { return TagMode; }
public CourierProfileView setTagMode(String value) { this.TagMode = value; return this; }
public ArrayList<String> getTagFormats() { return TagFormats; }
public CourierProfileView setTagFormats(ArrayList<String> value) { this.TagFormats = value; return this; }
public CourierPay getPay() { return Pay; }
public CourierProfileView setPay(CourierPay value) { this.Pay = value; return this; }
public CourierDispatch getDispatch() { return Dispatch; }
public CourierProfileView setDispatch(CourierDispatch value) { this.Dispatch = value; return this; }
public CourierMissed getMissed() { return Missed; }
public CourierProfileView setMissed(CourierMissed value) { this.Missed = value; return this; }
public CourierPrivacy getPrivacy() { return Privacy; }
public CourierProfileView setPrivacy(CourierPrivacy value) { this.Privacy = value; return this; }
public CourierPricing getPricing() { return Pricing; }
public CourierProfileView setPricing(CourierPricing value) { this.Pricing = value; return this; }
public CourierBooking getBooking() { return Booking; }
public CourierProfileView setBooking(CourierBooking value) { this.Booking = value; return this; }
public ArrayList<CourierFacilityView> getFacilities() { return Facilities; }
public CourierProfileView setFacilities(ArrayList<CourierFacilityView> value) { this.Facilities = value; return this; }
public ArrayList<CourierVehicleView> getVehicles() { return Vehicles; }
public CourierProfileView setVehicles(ArrayList<CourierVehicleView> value) { this.Vehicles = value; return this; }
public HashMap<String,HashMap<String,String>> getProof() { return Proof; }
public CourierProfileView setProof(HashMap<String,HashMap<String,String>> value) { this.Proof = value; return this; }
public CourierProfileContext getContext() { return Context; }
public CourierProfileView setContext(CourierProfileContext value) { this.Context = value; return this; }
}
public static class CourierPay
{
public String WorkerClass = null;
public BigDecimal PerPickup = null;
public BigDecimal PerStop = null;
public BigDecimal PerMissed = null;
public BigDecimal PerCancel = null;
public Integer WaitAfterMin = null;
public BigDecimal WaitPerMin = null;
public Boolean MileageOn = null;
public BigDecimal PerMile = null;
public BigDecimal MinPerJob = null;
public BigDecimal TipsPct = null;
public String getWorkerClass() { return WorkerClass; }
public CourierPay setWorkerClass(String value) { this.WorkerClass = value; return this; }
public BigDecimal getPerPickup() { return PerPickup; }
public CourierPay setPerPickup(BigDecimal value) { this.PerPickup = value; return this; }
public BigDecimal getPerStop() { return PerStop; }
public CourierPay setPerStop(BigDecimal value) { this.PerStop = value; return this; }
public BigDecimal getPerMissed() { return PerMissed; }
public CourierPay setPerMissed(BigDecimal value) { this.PerMissed = value; return this; }
public BigDecimal getPerCancel() { return PerCancel; }
public CourierPay setPerCancel(BigDecimal value) { this.PerCancel = value; return this; }
public Integer getWaitAfterMin() { return WaitAfterMin; }
public CourierPay setWaitAfterMin(Integer value) { this.WaitAfterMin = value; return this; }
public BigDecimal getWaitPerMin() { return WaitPerMin; }
public CourierPay setWaitPerMin(BigDecimal value) { this.WaitPerMin = value; return this; }
public Boolean isMileageOn() { return MileageOn; }
public CourierPay setMileageOn(Boolean value) { this.MileageOn = value; return this; }
public BigDecimal getPerMile() { return PerMile; }
public CourierPay setPerMile(BigDecimal value) { this.PerMile = value; return this; }
public BigDecimal getMinPerJob() { return MinPerJob; }
public CourierPay setMinPerJob(BigDecimal value) { this.MinPerJob = value; return this; }
public BigDecimal getTipsPct() { return TipsPct; }
public CourierPay setTipsPct(BigDecimal value) { this.TipsPct = value; return this; }
}
public static class CourierDispatch
{
public Integer PingSecs = null;
public BigDecimal RadiusMi = null;
public Boolean DeclinePenalty = null;
public String NextRule = null;
public Integer GoMin = null;
public Integer LastMin = null;
public Integer NearFull = null;
public Integer MarginMin = null;
public String TrafficSource = null;
public Integer getPingSecs() { return PingSecs; }
public CourierDispatch setPingSecs(Integer value) { this.PingSecs = value; return this; }
public BigDecimal getRadiusMi() { return RadiusMi; }
public CourierDispatch setRadiusMi(BigDecimal value) { this.RadiusMi = value; return this; }
public Boolean isDeclinePenalty() { return DeclinePenalty; }
public CourierDispatch setDeclinePenalty(Boolean value) { this.DeclinePenalty = value; return this; }
public String getNextRule() { return NextRule; }
public CourierDispatch setNextRule(String value) { this.NextRule = value; return this; }
public Integer getGoMin() { return GoMin; }
public CourierDispatch setGoMin(Integer value) { this.GoMin = value; return this; }
public Integer getLastMin() { return LastMin; }
public CourierDispatch setLastMin(Integer value) { this.LastMin = value; return this; }
public Integer getNearFull() { return NearFull; }
public CourierDispatch setNearFull(Integer value) { this.NearFull = value; return this; }
public Integer getMarginMin() { return MarginMin; }
public CourierDispatch setMarginMin(Integer value) { this.MarginMin = value; return this; }
public String getTrafficSource() { return TrafficSource; }
public CourierDispatch setTrafficSource(String value) { this.TrafficSource = value; return this; }
}
public static class CourierMissed
{
public Integer WaitMin = null;
public BigDecimal Fee = null;
public BigDecimal CancelFee = null;
public Boolean AutoRebook = null;
public Boolean RequireContact = null;
public Boolean RequirePhoto = null;
public Integer getWaitMin() { return WaitMin; }
public CourierMissed setWaitMin(Integer value) { this.WaitMin = value; return this; }
public BigDecimal getFee() { return Fee; }
public CourierMissed setFee(BigDecimal value) { this.Fee = value; return this; }
public BigDecimal getCancelFee() { return CancelFee; }
public CourierMissed setCancelFee(BigDecimal value) { this.CancelFee = value; return this; }
public Boolean isAutoRebook() { return AutoRebook; }
public CourierMissed setAutoRebook(Boolean value) { this.AutoRebook = value; return this; }
public Boolean isRequireContact() { return RequireContact; }
public CourierMissed setRequireContact(Boolean value) { this.RequireContact = value; return this; }
public Boolean isRequirePhoto() { return RequirePhoto; }
public CourierMissed setRequirePhoto(Boolean value) { this.RequirePhoto = value; return this; }
}
public static class CourierPrivacy
{
public Integer ThreadHrs = null;
public Integer PhotoDays = null;
public String LockNames = null;
public Boolean HideAddr = null;
public Boolean LiveEta = null;
public Boolean Tipping = null;
public Integer getThreadHrs() { return ThreadHrs; }
public CourierPrivacy setThreadHrs(Integer value) { this.ThreadHrs = value; return this; }
public Integer getPhotoDays() { return PhotoDays; }
public CourierPrivacy setPhotoDays(Integer value) { this.PhotoDays = value; return this; }
public String getLockNames() { return LockNames; }
public CourierPrivacy setLockNames(String value) { this.LockNames = value; return this; }
public Boolean isHideAddr() { return HideAddr; }
public CourierPrivacy setHideAddr(Boolean value) { this.HideAddr = value; return this; }
public Boolean isLiveEta() { return LiveEta; }
public CourierPrivacy setLiveEta(Boolean value) { this.LiveEta = value; return this; }
public Boolean isTipping() { return Tipping; }
public CourierPrivacy setTipping(Boolean value) { this.Tipping = value; return this; }
}
public static class CourierPricing
{
public BigDecimal Base = null;
public BigDecimal PerUnit = null;
public BigDecimal PerMile = null;
public BigDecimal MinOrder = null;
public BigDecimal TaxPct = null;
public Boolean FinalAfterCount = null;
public ArrayList<String> ServiceArea = new ArrayList<String>();
public Integer WindowMin = null;
public HashMap<String,BigDecimal> Surcharges = new HashMap<String,BigDecimal>();
public BigDecimal getBase() { return Base; }
public CourierPricing setBase(BigDecimal value) { this.Base = value; return this; }
public BigDecimal getPerUnit() { return PerUnit; }
public CourierPricing setPerUnit(BigDecimal value) { this.PerUnit = value; return this; }
public BigDecimal getPerMile() { return PerMile; }
public CourierPricing setPerMile(BigDecimal value) { this.PerMile = value; return this; }
public BigDecimal getMinOrder() { return MinOrder; }
public CourierPricing setMinOrder(BigDecimal value) { this.MinOrder = value; return this; }
public BigDecimal getTaxPct() { return TaxPct; }
public CourierPricing setTaxPct(BigDecimal value) { this.TaxPct = value; return this; }
public Boolean isFinalAfterCount() { return FinalAfterCount; }
public CourierPricing setFinalAfterCount(Boolean value) { this.FinalAfterCount = value; return this; }
public ArrayList<String> getServiceArea() { return ServiceArea; }
public CourierPricing setServiceArea(ArrayList<String> value) { this.ServiceArea = value; return this; }
public Integer getWindowMin() { return WindowMin; }
public CourierPricing setWindowMin(Integer value) { this.WindowMin = value; return this; }
public HashMap<String,BigDecimal> getSurcharges() { return Surcharges; }
public CourierPricing setSurcharges(HashMap<String,BigDecimal> value) { this.Surcharges = value; return this; }
}
public static class CourierBooking
{
public Boolean On = null;
public String Slug = null;
public Boolean Asap = null;
public Integer MinLeadMin = null;
public String Open = null;
public String Close = null;
public Integer DriveBufferMin = null;
public ArrayList<String> Zips = new ArrayList<String>();
public Boolean Recurring = null;
public String PayTiming = null;
public Boolean isOn() { return On; }
public CourierBooking setOn(Boolean value) { this.On = value; return this; }
public String getSlug() { return Slug; }
public CourierBooking setSlug(String value) { this.Slug = value; return this; }
public Boolean isAsap() { return Asap; }
public CourierBooking setAsap(Boolean value) { this.Asap = value; return this; }
public Integer getMinLeadMin() { return MinLeadMin; }
public CourierBooking setMinLeadMin(Integer value) { this.MinLeadMin = value; return this; }
public String getOpen() { return Open; }
public CourierBooking setOpen(String value) { this.Open = value; return this; }
public String getClose() { return Close; }
public CourierBooking setClose(String value) { this.Close = value; return this; }
public Integer getDriveBufferMin() { return DriveBufferMin; }
public CourierBooking setDriveBufferMin(Integer value) { this.DriveBufferMin = value; return this; }
public ArrayList<String> getZips() { return Zips; }
public CourierBooking setZips(ArrayList<String> value) { this.Zips = value; return this; }
public Boolean isRecurring() { return Recurring; }
public CourierBooking setRecurring(Boolean value) { this.Recurring = value; return this; }
public String getPayTiming() { return PayTiming; }
public CourierBooking setPayTiming(String value) { this.PayTiming = value; return this; }
}
public static class CourierFacilityView
{
public String Code = null;
public String Name = null;
public String Address = null;
public Integer IntakeMin = null;
public ArrayList<CourierLevelView> Levels = new ArrayList<CourierLevelView>();
public ArrayList<String> Holidays = new ArrayList<String>();
public String getCode() { return Code; }
public CourierFacilityView setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public CourierFacilityView setName(String value) { this.Name = value; return this; }
public String getAddress() { return Address; }
public CourierFacilityView setAddress(String value) { this.Address = value; return this; }
public Integer getIntakeMin() { return IntakeMin; }
public CourierFacilityView setIntakeMin(Integer value) { this.IntakeMin = value; return this; }
public ArrayList<CourierLevelView> getLevels() { return Levels; }
public CourierFacilityView setLevels(ArrayList<CourierLevelView> value) { this.Levels = value; return this; }
public ArrayList<String> getHolidays() { return Holidays; }
public CourierFacilityView setHolidays(ArrayList<String> value) { this.Holidays = value; return this; }
}
public static class CourierLevelView
{
public String Code = null;
public String Name = null;
public String InBy = null;
public Integer WithinMin = null;
public String Ready = null;
public ArrayList<Integer> Days = new ArrayList<Integer>();
public Boolean IsOn = null;
public String getCode() { return Code; }
public CourierLevelView setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public CourierLevelView setName(String value) { this.Name = value; return this; }
public String getInBy() { return InBy; }
public CourierLevelView setInBy(String value) { this.InBy = value; return this; }
public Integer getWithinMin() { return WithinMin; }
public CourierLevelView setWithinMin(Integer value) { this.WithinMin = value; return this; }
public String getReady() { return Ready; }
public CourierLevelView setReady(String value) { this.Ready = value; return this; }
public ArrayList<Integer> getDays() { return Days; }
public CourierLevelView setDays(ArrayList<Integer> value) { this.Days = value; return this; }
public Boolean getIsOn() { return IsOn; }
public CourierLevelView setIsOn(Boolean value) { this.IsOn = value; return this; }
}
public static class CourierVehicleView
{
public Integer EquipmentID = null;
public String UnitNumber = null;
public String Name = null;
public String Unit = null;
public BigDecimal Cap = null;
public Boolean Cold = null;
public Integer getEquipmentID() { return EquipmentID; }
public CourierVehicleView setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
public String getUnitNumber() { return UnitNumber; }
public CourierVehicleView setUnitNumber(String value) { this.UnitNumber = value; return this; }
public String getName() { return Name; }
public CourierVehicleView setName(String value) { this.Name = value; return this; }
public String getUnit() { return Unit; }
public CourierVehicleView setUnit(String value) { this.Unit = value; return this; }
public BigDecimal getCap() { return Cap; }
public CourierVehicleView setCap(BigDecimal value) { this.Cap = value; return this; }
public Boolean isCold() { return Cold; }
public CourierVehicleView setCold(Boolean value) { this.Cold = value; return this; }
}
public static class CourierProfileContext
{
public Integer Drivers = null;
public Integer ProfileCount = null;
public Integer PayPlanId = null;
public String ZoneMode = null;
public String ZoneName = null;
public Integer ZoneCount = null;
public Boolean HasBookingPage = null;
public Boolean HasRateConfig = null;
public HashMap<String,String> VehicleFacts = new HashMap<String,String>();
public Integer getDrivers() { return Drivers; }
public CourierProfileContext setDrivers(Integer value) { this.Drivers = value; return this; }
public Integer getProfileCount() { return ProfileCount; }
public CourierProfileContext setProfileCount(Integer value) { this.ProfileCount = value; return this; }
public Integer getPayPlanId() { return PayPlanId; }
public CourierProfileContext setPayPlanId(Integer value) { this.PayPlanId = value; return this; }
public String getZoneMode() { return ZoneMode; }
public CourierProfileContext setZoneMode(String value) { this.ZoneMode = value; return this; }
public String getZoneName() { return ZoneName; }
public CourierProfileContext setZoneName(String value) { this.ZoneName = value; return this; }
public Integer getZoneCount() { return ZoneCount; }
public CourierProfileContext setZoneCount(Integer value) { this.ZoneCount = value; return this; }
public Boolean isHasBookingPage() { return HasBookingPage; }
public CourierProfileContext setHasBookingPage(Boolean value) { this.HasBookingPage = value; return this; }
public Boolean isHasRateConfig() { return HasRateConfig; }
public CourierProfileContext setHasRateConfig(Boolean value) { this.HasRateConfig = value; return this; }
public HashMap<String,String> getVehicleFacts() { return VehicleFacts; }
public CourierProfileContext setVehicleFacts(HashMap<String,String> value) { this.VehicleFacts = value; return this; }
}
public static class CourierIssue
{
public String Key = null;
public String Section = null;
public String Message = null;
public String getKey() { return Key; }
public CourierIssue setKey(String value) { this.Key = value; return this; }
public String getSection() { return Section; }
public CourierIssue setSection(String value) { this.Section = value; return this; }
public String getMessage() { return Message; }
public CourierIssue setMessage(String value) { this.Message = value; return this; }
}
public static class CourierChange
{
public String Key = null;
public String Section = null;
public String Label = null;
public String From = null;
public String To = null;
public String getKey() { return Key; }
public CourierChange setKey(String value) { this.Key = value; return this; }
public String getSection() { return Section; }
public CourierChange setSection(String value) { this.Section = value; return this; }
public String getLabel() { return Label; }
public CourierChange setLabel(String value) { this.Label = value; return this; }
public String getFrom() { return From; }
public CourierChange setFrom(String value) { this.From = value; return this; }
public String getTo() { return To; }
public CourierChange setTo(String value) { this.To = value; return this; }
}
public static class CourierPreview
{
public String DeadlineTitle = null;
public String DeadlineLead = null;
public String RoomW = null;
public String LastW = null;
public String GoW = null;
public ArrayList<CourierPreviewLine> Zones = new ArrayList<CourierPreviewLine>();
public String PaySub = null;
public ArrayList<CourierPreviewLine> PayRows = new ArrayList<CourierPreviewLine>();
public String PayTotal = null;
public ArrayList<CourierPreviewLine> ProofRows = new ArrayList<CourierPreviewLine>();
public String Ping = null;
public String getDeadlineTitle() { return DeadlineTitle; }
public CourierPreview setDeadlineTitle(String value) { this.DeadlineTitle = value; return this; }
public String getDeadlineLead() { return DeadlineLead; }
public CourierPreview setDeadlineLead(String value) { this.DeadlineLead = value; return this; }
public String getRoomW() { return RoomW; }
public CourierPreview setRoomW(String value) { this.RoomW = value; return this; }
public String getLastW() { return LastW; }
public CourierPreview setLastW(String value) { this.LastW = value; return this; }
public String getGoW() { return GoW; }
public CourierPreview setGoW(String value) { this.GoW = value; return this; }
public ArrayList<CourierPreviewLine> getZones() { return Zones; }
public CourierPreview setZones(ArrayList<CourierPreviewLine> value) { this.Zones = value; return this; }
public String getPaySub() { return PaySub; }
public CourierPreview setPaySub(String value) { this.PaySub = value; return this; }
public ArrayList<CourierPreviewLine> getPayRows() { return PayRows; }
public CourierPreview setPayRows(ArrayList<CourierPreviewLine> value) { this.PayRows = value; return this; }
public String getPayTotal() { return PayTotal; }
public CourierPreview setPayTotal(String value) { this.PayTotal = value; return this; }
public ArrayList<CourierPreviewLine> getProofRows() { return ProofRows; }
public CourierPreview setProofRows(ArrayList<CourierPreviewLine> value) { this.ProofRows = value; return this; }
public String getPing() { return Ping; }
public CourierPreview setPing(String value) { this.Ping = value; return this; }
}
public static class CourierPreviewLine
{
public String K = null;
public String V = null;
public String Dot = null;
public String getK() { return K; }
public CourierPreviewLine setK(String value) { this.K = value; return this; }
public String getV() { return V; }
public CourierPreviewLine setV(String value) { this.V = value; return this; }
public String getDot() { return Dot; }
public CourierPreviewLine setDot(String value) { this.Dot = value; return this; }
}
public static class CourierFleetVehicle
{
public Integer EquipmentID = null;
public String UnitNumber = null;
public String Name = null;
public String VehicleType = null;
public String Unit = null;
public BigDecimal Cap = null;
public Boolean Cold = null;
public String Status = null;
public Boolean Assigned = null;
public Integer getEquipmentID() { return EquipmentID; }
public CourierFleetVehicle setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
public String getUnitNumber() { return UnitNumber; }
public CourierFleetVehicle setUnitNumber(String value) { this.UnitNumber = value; return this; }
public String getName() { return Name; }
public CourierFleetVehicle setName(String value) { this.Name = value; return this; }
public String getVehicleType() { return VehicleType; }
public CourierFleetVehicle setVehicleType(String value) { this.VehicleType = value; return this; }
public String getUnit() { return Unit; }
public CourierFleetVehicle setUnit(String value) { this.Unit = value; return this; }
public BigDecimal getCap() { return Cap; }
public CourierFleetVehicle setCap(BigDecimal value) { this.Cap = value; return this; }
public Boolean isCold() { return Cold; }
public CourierFleetVehicle setCold(Boolean value) { this.Cold = value; return this; }
public String getStatus() { return Status; }
public CourierFleetVehicle setStatus(String value) { this.Status = value; return this; }
public Boolean isAssigned() { return Assigned; }
public CourierFleetVehicle setAssigned(Boolean value) { this.Assigned = value; return this; }
}
}
Java CourierProfileResetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/dispatch/courier/profiles/{Id}/reset HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CourierProfileResetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<DryRun>false</DryRun>
<Id>0</Id>
</CourierProfileResetRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CourierResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Changes>
<CourierChange>
<From>String</From>
<Key>String</Key>
<Label>String</Label>
<Section>String</Section>
<To>String</To>
</CourierChange>
</Changes>
<Fleet>
<CourierFleetVehicle>
<Assigned>false</Assigned>
<Cap>0</Cap>
<Cold>false</Cold>
<EquipmentID>0</EquipmentID>
<Name>String</Name>
<Status>String</Status>
<Unit>String</Unit>
<UnitNumber>String</UnitNumber>
<VehicleType>String</VehicleType>
</CourierFleetVehicle>
</Fleet>
<Issues>
<CourierIssue>
<Key>String</Key>
<Message>String</Message>
<Section>String</Section>
</CourierIssue>
</Issues>
<Preview>
<DeadlineLead>String</DeadlineLead>
<DeadlineTitle>String</DeadlineTitle>
<GoW>String</GoW>
<LastW>String</LastW>
<PayRows>
<CourierPreviewLine>
<Dot>String</Dot>
<K>String</K>
<V>String</V>
</CourierPreviewLine>
</PayRows>
<PaySub>String</PaySub>
<PayTotal>String</PayTotal>
<Ping>String</Ping>
<ProofRows>
<CourierPreviewLine>
<Dot>String</Dot>
<K>String</K>
<V>String</V>
</CourierPreviewLine>
</ProofRows>
<RoomW>String</RoomW>
<Zones>
<CourierPreviewLine>
<Dot>String</Dot>
<K>String</K>
<V>String</V>
</CourierPreviewLine>
</Zones>
</Preview>
<Profile>
<Booking>
<Asap>false</Asap>
<Close>String</Close>
<DriveBufferMin>0</DriveBufferMin>
<MinLeadMin>0</MinLeadMin>
<On>false</On>
<Open>String</Open>
<PayTiming>String</PayTiming>
<Recurring>false</Recurring>
<Slug>String</Slug>
<Zips xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</Zips>
</Booking>
<BusinessName>String</BusinessName>
<Code>String</Code>
<Context>
<Drivers>0</Drivers>
<HasBookingPage>false</HasBookingPage>
<HasRateConfig>false</HasRateConfig>
<PayPlanId>0</PayPlanId>
<ProfileCount>0</ProfileCount>
<VehicleFacts xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</VehicleFacts>
<ZoneCount>0</ZoneCount>
<ZoneMode>String</ZoneMode>
<ZoneName>String</ZoneName>
</Context>
<CourierProfileID>0</CourierProfileID>
<Dispatch>
<DeclinePenalty>false</DeclinePenalty>
<GoMin>0</GoMin>
<LastMin>0</LastMin>
<MarginMin>0</MarginMin>
<NearFull>0</NearFull>
<NextRule>String</NextRule>
<PingSecs>0</PingSecs>
<RadiusMi>0</RadiusMi>
<TrafficSource>String</TrafficSource>
</Dispatch>
<Enabled>false</Enabled>
<Facilities>
<CourierFacilityView>
<Address>String</Address>
<Code>String</Code>
<Holidays xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</Holidays>
<IntakeMin>0</IntakeMin>
<Levels>
<CourierLevelView>
<Code>String</Code>
<Days xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:int>0</d7p1:int>
</Days>
<InBy>String</InBy>
<IsOn>false</IsOn>
<Name>String</Name>
<Ready>String</Ready>
<WithinMin>0</WithinMin>
</CourierLevelView>
</Levels>
<Name>String</Name>
</CourierFacilityView>
</Facilities>
<FacilityNoun>String</FacilityNoun>
<FacilityNounEs>String</FacilityNounEs>
<Missed>
<AutoRebook>false</AutoRebook>
<CancelFee>0</CancelFee>
<Fee>0</Fee>
<RequireContact>false</RequireContact>
<RequirePhoto>false</RequirePhoto>
<WaitMin>0</WaitMin>
</Missed>
<Name>String</Name>
<Pay>
<MileageOn>false</MileageOn>
<MinPerJob>0</MinPerJob>
<PerCancel>0</PerCancel>
<PerMile>0</PerMile>
<PerMissed>0</PerMissed>
<PerPickup>0</PerPickup>
<PerStop>0</PerStop>
<TipsPct>0</TipsPct>
<WaitAfterMin>0</WaitAfterMin>
<WaitPerMin>0</WaitPerMin>
<WorkerClass>String</WorkerClass>
</Pay>
<Pricing>
<Base>0</Base>
<FinalAfterCount>false</FinalAfterCount>
<MinOrder>0</MinOrder>
<PerMile>0</PerMile>
<PerUnit>0</PerUnit>
<ServiceArea xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</ServiceArea>
<Surcharges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringdecimal>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>0</d4p1:Value>
</d4p1:KeyValueOfstringdecimal>
</Surcharges>
<TaxPct>0</TaxPct>
<WindowMin>0</WindowMin>
</Pricing>
<Privacy>
<HideAddr>false</HideAddr>
<LiveEta>false</LiveEta>
<LockNames>String</LockNames>
<PhotoDays>0</PhotoDays>
<ThreadHrs>0</ThreadHrs>
<Tipping>false</Tipping>
</Privacy>
<Proof xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d3p1:Value>
</d3p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
</Proof>
<RouteShape>String</RouteShape>
<TagFormats xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</TagFormats>
<TagMode>String</TagMode>
<TemplateFrom>String</TemplateFrom>
<UnitMany>String</UnitMany>
<UnitManyEs>String</UnitManyEs>
<UnitOne>String</UnitOne>
<UnitOneEs>String</UnitOneEs>
<Vehicles>
<CourierVehicleView>
<Cap>0</Cap>
<Cold>false</Cold>
<EquipmentID>0</EquipmentID>
<Name>String</Name>
<Unit>String</Unit>
<UnitNumber>String</UnitNumber>
</CourierVehicleView>
</Vehicles>
</Profile>
<Profiles>
<CourierProfileSummary>
<BusinessName>String</BusinessName>
<Code>String</Code>
<CourierProfileID>0</CourierProfileID>
<Drivers>0</Drivers>
<Enabled>false</Enabled>
<Name>String</Name>
<RouteShape>String</RouteShape>
<TemplateFrom>String</TemplateFrom>
</CourierProfileSummary>
</Profiles>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Templates>
<CourierTemplateOption>
<Detail>String</Detail>
<Key>String</Key>
<Label>String</Label>
<RouteShape>String</RouteShape>
</CourierTemplateOption>
</Templates>
</CourierResponse>