| POST,OPTIONS | /v1/dispatch/courier/profiles |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CourierProfileCreateRequest
{
public String Name = null;
public String TemplateKey = null;
public String getName() { return Name; }
public CourierProfileCreateRequest setName(String value) { this.Name = value; return this; }
public String getTemplateKey() { return TemplateKey; }
public CourierProfileCreateRequest setTemplateKey(String value) { this.TemplateKey = 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 CourierProfileCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/dispatch/courier/profiles HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Name: String,
TemplateKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Profiles:
[
{
CourierProfileID: 0,
Code: String,
Name: String,
BusinessName: String,
RouteShape: String,
Enabled: False,
TemplateFrom: String,
Drivers: 0
}
],
Templates:
[
{
Key: String,
Label: String,
Detail: String,
RouteShape: String
}
],
Profile:
{
CourierProfileID: 0,
Code: String,
Name: String,
BusinessName: String,
RouteShape: String,
Enabled: False,
TemplateFrom: String,
UnitOne: String,
UnitMany: String,
FacilityNoun: String,
UnitOneEs: String,
UnitManyEs: String,
FacilityNounEs: String,
TagMode: String,
TagFormats:
[
String
],
Pay:
{
WorkerClass: String,
PerPickup: 0,
PerStop: 0,
PerMissed: 0,
PerCancel: 0,
WaitAfterMin: 0,
WaitPerMin: 0,
MileageOn: False,
PerMile: 0,
MinPerJob: 0,
TipsPct: 0
},
Dispatch:
{
PingSecs: 0,
RadiusMi: 0,
DeclinePenalty: False,
NextRule: String,
GoMin: 0,
LastMin: 0,
NearFull: 0,
MarginMin: 0,
TrafficSource: String
},
Missed:
{
WaitMin: 0,
Fee: 0,
CancelFee: 0,
AutoRebook: False,
RequireContact: False,
RequirePhoto: False
},
Privacy:
{
ThreadHrs: 0,
PhotoDays: 0,
LockNames: String,
HideAddr: False,
LiveEta: False,
Tipping: False
},
Pricing:
{
Base: 0,
PerUnit: 0,
PerMile: 0,
MinOrder: 0,
TaxPct: 0,
FinalAfterCount: False,
ServiceArea:
[
String
],
WindowMin: 0,
Surcharges:
{
String: 0
}
},
Booking:
{
On: False,
Slug: String,
Asap: False,
MinLeadMin: 0,
Open: String,
Close: String,
DriveBufferMin: 0,
Zips:
[
String
],
Recurring: False,
PayTiming: String
},
Facilities:
[
{
Code: String,
Name: String,
Address: String,
IntakeMin: 0,
Levels:
[
{
Code: String,
Name: String,
InBy: String,
WithinMin: 0,
Ready: String,
Days:
[
0
],
IsOn: False
}
],
Holidays:
[
String
]
}
],
Vehicles:
[
{
EquipmentID: 0,
UnitNumber: String,
Name: String,
Unit: String,
Cap: 0,
Cold: False
}
],
Proof:
{
String:
{
String: String
}
},
Context:
{
Drivers: 0,
ProfileCount: 0,
PayPlanId: 0,
ZoneMode: String,
ZoneName: String,
ZoneCount: 0,
HasBookingPage: False,
HasRateConfig: False,
VehicleFacts:
{
String: String
}
}
},
Issues:
[
{
Key: String,
Section: String,
Message: String
}
],
Changes:
[
{
Key: String,
Section: String,
Label: String,
From: String,
To: String
}
],
Preview:
{
DeadlineTitle: String,
DeadlineLead: String,
RoomW: String,
LastW: String,
GoW: String,
Zones:
[
{
K: String,
V: String,
Dot: String
}
],
PaySub: String,
PayRows:
[
{
K: String,
V: String,
Dot: String
}
],
PayTotal: String,
ProofRows:
[
{
K: String,
V: String,
Dot: String
}
],
Ping: String
},
Fleet:
[
{
EquipmentID: 0,
UnitNumber: String,
Name: String,
VehicleType: String,
Unit: String,
Cap: 0,
Cold: False,
Status: String,
Assigned: False
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}