| GET | /v1/dispatch/courier/customers |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CourierCustomersRequest
{
public String Q = null;
public String getQ() { return Q; }
public CourierCustomersRequest setQ(String value) { this.Q = value; return this; }
}
public static class CustomerAppResponse
{
public CustomerAppBoot Boot = null;
public CustomerAppMe Customer = null;
public ArrayList<CustomerAppAddress> Addresses = new ArrayList<CustomerAppAddress>();
public ArrayList<CustomerAppCard> Cards = new ArrayList<CustomerAppCard>();
public CustomerAppNotif Notif = null;
public ArrayList<CustomerAppRecurrence> Recurring = new ArrayList<CustomerAppRecurrence>();
public CourierBookOrderResponse Booked = null;
public Boolean Sent = null;
public String Token = null;
public Boolean NeedsName = null;
public String Name = null;
public String Url = null;
public String ClientSecret = null;
public String PublishableKey = null;
public String Message = null;
public String ReopenStep = null;
public ArrayList<CourierCustomerRow> Customers = new ArrayList<CourierCustomerRow>();
public RunResult Run = null;
public ResponseStatus ResponseStatus = null;
public CustomerAppBoot getBoot() { return Boot; }
public CustomerAppResponse setBoot(CustomerAppBoot value) { this.Boot = value; return this; }
public CustomerAppMe getCustomer() { return Customer; }
public CustomerAppResponse setCustomer(CustomerAppMe value) { this.Customer = value; return this; }
public ArrayList<CustomerAppAddress> getAddresses() { return Addresses; }
public CustomerAppResponse setAddresses(ArrayList<CustomerAppAddress> value) { this.Addresses = value; return this; }
public ArrayList<CustomerAppCard> getCards() { return Cards; }
public CustomerAppResponse setCards(ArrayList<CustomerAppCard> value) { this.Cards = value; return this; }
public CustomerAppNotif getNotif() { return Notif; }
public CustomerAppResponse setNotif(CustomerAppNotif value) { this.Notif = value; return this; }
public ArrayList<CustomerAppRecurrence> getRecurring() { return Recurring; }
public CustomerAppResponse setRecurring(ArrayList<CustomerAppRecurrence> value) { this.Recurring = value; return this; }
public CourierBookOrderResponse getBooked() { return Booked; }
public CustomerAppResponse setBooked(CourierBookOrderResponse value) { this.Booked = value; return this; }
public Boolean isSent() { return Sent; }
public CustomerAppResponse setSent(Boolean value) { this.Sent = value; return this; }
public String getToken() { return Token; }
public CustomerAppResponse setToken(String value) { this.Token = value; return this; }
public Boolean isNeedsName() { return NeedsName; }
public CustomerAppResponse setNeedsName(Boolean value) { this.NeedsName = value; return this; }
public String getName() { return Name; }
public CustomerAppResponse setName(String value) { this.Name = value; return this; }
public String getUrl() { return Url; }
public CustomerAppResponse setUrl(String value) { this.Url = value; return this; }
public String getClientSecret() { return ClientSecret; }
public CustomerAppResponse setClientSecret(String value) { this.ClientSecret = value; return this; }
public String getPublishableKey() { return PublishableKey; }
public CustomerAppResponse setPublishableKey(String value) { this.PublishableKey = value; return this; }
public String getMessage() { return Message; }
public CustomerAppResponse setMessage(String value) { this.Message = value; return this; }
public String getReopenStep() { return ReopenStep; }
public CustomerAppResponse setReopenStep(String value) { this.ReopenStep = value; return this; }
public ArrayList<CourierCustomerRow> getCustomers() { return Customers; }
public CustomerAppResponse setCustomers(ArrayList<CourierCustomerRow> value) { this.Customers = value; return this; }
public RunResult getRun() { return Run; }
public CustomerAppResponse setRun(RunResult value) { this.Run = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CustomerAppResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CustomerAppBoot
{
public String Profile = null;
public Boolean Available = null;
public String Reason = null;
public String AuthMethod = null;
public String Slug = null;
public CourierBookPageView Page = null;
public String ManifestUrl = null;
public String getProfile() { return Profile; }
public CustomerAppBoot setProfile(String value) { this.Profile = value; return this; }
public Boolean isAvailable() { return Available; }
public CustomerAppBoot setAvailable(Boolean value) { this.Available = value; return this; }
public String getReason() { return Reason; }
public CustomerAppBoot setReason(String value) { this.Reason = value; return this; }
public String getAuthMethod() { return AuthMethod; }
public CustomerAppBoot setAuthMethod(String value) { this.AuthMethod = value; return this; }
public String getSlug() { return Slug; }
public CustomerAppBoot setSlug(String value) { this.Slug = value; return this; }
public CourierBookPageView getPage() { return Page; }
public CustomerAppBoot setPage(CourierBookPageView value) { this.Page = value; return this; }
public String getManifestUrl() { return ManifestUrl; }
public CustomerAppBoot setManifestUrl(String value) { this.ManifestUrl = value; return this; }
}
public static class CourierBookPageView
{
public Boolean Available = null;
public Boolean BookingOn = null;
public CourierTrackBusiness Business = null;
public CourierBookProfile Profile = null;
public ArrayList<CourierBookProfileLink> Profiles = new ArrayList<CourierBookProfileLink>();
public Boolean CardEnabled = null;
public String PublishableKey = null;
public String AppUrl = null;
public String Today = null;
public Integer Weekday = null;
public Integer NowMin = null;
public Boolean isAvailable() { return Available; }
public CourierBookPageView setAvailable(Boolean value) { this.Available = value; return this; }
public Boolean isBookingOn() { return BookingOn; }
public CourierBookPageView setBookingOn(Boolean value) { this.BookingOn = value; return this; }
public CourierTrackBusiness getBusiness() { return Business; }
public CourierBookPageView setBusiness(CourierTrackBusiness value) { this.Business = value; return this; }
public CourierBookProfile getProfile() { return Profile; }
public CourierBookPageView setProfile(CourierBookProfile value) { this.Profile = value; return this; }
public ArrayList<CourierBookProfileLink> getProfiles() { return Profiles; }
public CourierBookPageView setProfiles(ArrayList<CourierBookProfileLink> value) { this.Profiles = value; return this; }
public Boolean isCardEnabled() { return CardEnabled; }
public CourierBookPageView setCardEnabled(Boolean value) { this.CardEnabled = value; return this; }
public String getPublishableKey() { return PublishableKey; }
public CourierBookPageView setPublishableKey(String value) { this.PublishableKey = value; return this; }
public String getAppUrl() { return AppUrl; }
public CourierBookPageView setAppUrl(String value) { this.AppUrl = value; return this; }
public String getToday() { return Today; }
public CourierBookPageView setToday(String value) { this.Today = value; return this; }
public Integer getWeekday() { return Weekday; }
public CourierBookPageView setWeekday(Integer value) { this.Weekday = value; return this; }
public Integer getNowMin() { return NowMin; }
public CourierBookPageView setNowMin(Integer value) { this.NowMin = value; return this; }
}
public static class CourierTrackBusiness
{
public String Name = null;
public String Phone = null;
public String getName() { return Name; }
public CourierTrackBusiness setName(String value) { this.Name = value; return this; }
public String getPhone() { return Phone; }
public CourierTrackBusiness setPhone(String value) { this.Phone = value; return this; }
}
public static class CourierBookProfile
{
public String Code = null;
public String Name = null;
public String Shape = null;
public String Template = null;
public String UnitOne = null;
public String UnitMany = null;
public String UnitOneEs = null;
public String UnitManyEs = null;
public String FacilityNoun = null;
public String FacilityNounEs = null;
public String FacilityName = null;
public ArrayList<CourierBookLevel> Levels = new ArrayList<CourierBookLevel>();
public Boolean Asap = null;
public Boolean Recurring = null;
public String PayTiming = null;
public Boolean FinalAfterCount = null;
public BigDecimal CancelFee = null;
public BigDecimal MissedFee = null;
public Integer MissedWaitMin = null;
public ArrayList<String> ServiceArea = new ArrayList<String>();
public ArrayList<String> Zips = new ArrayList<String>();
public HandoffOptions Handoffs = null;
public String getCode() { return Code; }
public CourierBookProfile setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public CourierBookProfile setName(String value) { this.Name = value; return this; }
public String getShape() { return Shape; }
public CourierBookProfile setShape(String value) { this.Shape = value; return this; }
public String getTemplate() { return Template; }
public CourierBookProfile setTemplate(String value) { this.Template = value; return this; }
public String getUnitOne() { return UnitOne; }
public CourierBookProfile setUnitOne(String value) { this.UnitOne = value; return this; }
public String getUnitMany() { return UnitMany; }
public CourierBookProfile setUnitMany(String value) { this.UnitMany = value; return this; }
public String getUnitOneEs() { return UnitOneEs; }
public CourierBookProfile setUnitOneEs(String value) { this.UnitOneEs = value; return this; }
public String getUnitManyEs() { return UnitManyEs; }
public CourierBookProfile setUnitManyEs(String value) { this.UnitManyEs = value; return this; }
public String getFacilityNoun() { return FacilityNoun; }
public CourierBookProfile setFacilityNoun(String value) { this.FacilityNoun = value; return this; }
public String getFacilityNounEs() { return FacilityNounEs; }
public CourierBookProfile setFacilityNounEs(String value) { this.FacilityNounEs = value; return this; }
public String getFacilityName() { return FacilityName; }
public CourierBookProfile setFacilityName(String value) { this.FacilityName = value; return this; }
public ArrayList<CourierBookLevel> getLevels() { return Levels; }
public CourierBookProfile setLevels(ArrayList<CourierBookLevel> value) { this.Levels = value; return this; }
public Boolean isAsap() { return Asap; }
public CourierBookProfile setAsap(Boolean value) { this.Asap = value; return this; }
public Boolean isRecurring() { return Recurring; }
public CourierBookProfile setRecurring(Boolean value) { this.Recurring = value; return this; }
public String getPayTiming() { return PayTiming; }
public CourierBookProfile setPayTiming(String value) { this.PayTiming = value; return this; }
public Boolean isFinalAfterCount() { return FinalAfterCount; }
public CourierBookProfile setFinalAfterCount(Boolean value) { this.FinalAfterCount = value; return this; }
public BigDecimal getCancelFee() { return CancelFee; }
public CourierBookProfile setCancelFee(BigDecimal value) { this.CancelFee = value; return this; }
public BigDecimal getMissedFee() { return MissedFee; }
public CourierBookProfile setMissedFee(BigDecimal value) { this.MissedFee = value; return this; }
public Integer getMissedWaitMin() { return MissedWaitMin; }
public CourierBookProfile setMissedWaitMin(Integer value) { this.MissedWaitMin = value; return this; }
public ArrayList<String> getServiceArea() { return ServiceArea; }
public CourierBookProfile setServiceArea(ArrayList<String> value) { this.ServiceArea = value; return this; }
public ArrayList<String> getZips() { return Zips; }
public CourierBookProfile setZips(ArrayList<String> value) { this.Zips = value; return this; }
public HandoffOptions getHandoffs() { return Handoffs; }
public CourierBookProfile setHandoffs(HandoffOptions value) { this.Handoffs = value; return this; }
}
public static class CourierBookLevel
{
public String Code = null;
public String Name = null;
public String Ready = null;
public Integer WithinMin = null;
public String InBy = null;
public BigDecimal Surcharge = null;
public ArrayList<Integer> Days = new ArrayList<Integer>();
public Integer DeadlineMin = null;
public String getCode() { return Code; }
public CourierBookLevel setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public CourierBookLevel setName(String value) { this.Name = value; return this; }
public String getReady() { return Ready; }
public CourierBookLevel setReady(String value) { this.Ready = value; return this; }
public Integer getWithinMin() { return WithinMin; }
public CourierBookLevel setWithinMin(Integer value) { this.WithinMin = value; return this; }
public String getInBy() { return InBy; }
public CourierBookLevel setInBy(String value) { this.InBy = value; return this; }
public BigDecimal getSurcharge() { return Surcharge; }
public CourierBookLevel setSurcharge(BigDecimal value) { this.Surcharge = value; return this; }
public ArrayList<Integer> getDays() { return Days; }
public CourierBookLevel setDays(ArrayList<Integer> value) { this.Days = value; return this; }
public Integer getDeadlineMin() { return DeadlineMin; }
public CourierBookLevel setDeadlineMin(Integer value) { this.DeadlineMin = value; return this; }
}
public static class HandoffOptions
{
public Boolean Hand = null;
public Boolean Porch = null;
public Boolean Desk = null;
public Boolean SigRequired = null;
public Boolean IdRequired = null;
public Boolean CodeRequired = null;
public Boolean isHand() { return Hand; }
public HandoffOptions setHand(Boolean value) { this.Hand = value; return this; }
public Boolean isPorch() { return Porch; }
public HandoffOptions setPorch(Boolean value) { this.Porch = value; return this; }
public Boolean isDesk() { return Desk; }
public HandoffOptions setDesk(Boolean value) { this.Desk = value; return this; }
public Boolean isSigRequired() { return SigRequired; }
public HandoffOptions setSigRequired(Boolean value) { this.SigRequired = value; return this; }
public Boolean isIdRequired() { return IdRequired; }
public HandoffOptions setIdRequired(Boolean value) { this.IdRequired = value; return this; }
public Boolean isCodeRequired() { return CodeRequired; }
public HandoffOptions setCodeRequired(Boolean value) { this.CodeRequired = value; return this; }
}
public static class CourierBookProfileLink
{
public String Code = null;
public String Name = null;
public String Shape = null;
public String getCode() { return Code; }
public CourierBookProfileLink setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public CourierBookProfileLink setName(String value) { this.Name = value; return this; }
public String getShape() { return Shape; }
public CourierBookProfileLink setShape(String value) { this.Shape = value; return this; }
}
public static class CustomerAppMe
{
public Integer ContactId = null;
public String FirstName = null;
public String LastName = null;
public String Name = null;
public String Phone = null;
public Boolean NeedsName = null;
public String BillingMode = null;
public String AccountCode = null;
public ArrayList<CustomerAppAddress> Addresses = new ArrayList<CustomerAppAddress>();
public ArrayList<CustomerAppCard> Cards = new ArrayList<CustomerAppCard>();
public CustomerAppNotif Notif = null;
public ArrayList<CustomerAppOrder> Orders = new ArrayList<CustomerAppOrder>();
public ArrayList<CustomerAppRecurrence> Recurring = new ArrayList<CustomerAppRecurrence>();
public ArrayList<CustomerAppInvoice> Invoices = new ArrayList<CustomerAppInvoice>();
public String Today = null;
public Integer NowMin = null;
public Integer getContactId() { return ContactId; }
public CustomerAppMe setContactId(Integer value) { this.ContactId = value; return this; }
public String getFirstName() { return FirstName; }
public CustomerAppMe setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public CustomerAppMe setLastName(String value) { this.LastName = value; return this; }
public String getName() { return Name; }
public CustomerAppMe setName(String value) { this.Name = value; return this; }
public String getPhone() { return Phone; }
public CustomerAppMe setPhone(String value) { this.Phone = value; return this; }
public Boolean isNeedsName() { return NeedsName; }
public CustomerAppMe setNeedsName(Boolean value) { this.NeedsName = value; return this; }
public String getBillingMode() { return BillingMode; }
public CustomerAppMe setBillingMode(String value) { this.BillingMode = value; return this; }
public String getAccountCode() { return AccountCode; }
public CustomerAppMe setAccountCode(String value) { this.AccountCode = value; return this; }
public ArrayList<CustomerAppAddress> getAddresses() { return Addresses; }
public CustomerAppMe setAddresses(ArrayList<CustomerAppAddress> value) { this.Addresses = value; return this; }
public ArrayList<CustomerAppCard> getCards() { return Cards; }
public CustomerAppMe setCards(ArrayList<CustomerAppCard> value) { this.Cards = value; return this; }
public CustomerAppNotif getNotif() { return Notif; }
public CustomerAppMe setNotif(CustomerAppNotif value) { this.Notif = value; return this; }
public ArrayList<CustomerAppOrder> getOrders() { return Orders; }
public CustomerAppMe setOrders(ArrayList<CustomerAppOrder> value) { this.Orders = value; return this; }
public ArrayList<CustomerAppRecurrence> getRecurring() { return Recurring; }
public CustomerAppMe setRecurring(ArrayList<CustomerAppRecurrence> value) { this.Recurring = value; return this; }
public ArrayList<CustomerAppInvoice> getInvoices() { return Invoices; }
public CustomerAppMe setInvoices(ArrayList<CustomerAppInvoice> value) { this.Invoices = value; return this; }
public String getToday() { return Today; }
public CustomerAppMe setToday(String value) { this.Today = value; return this; }
public Integer getNowMin() { return NowMin; }
public CustomerAppMe setNowMin(Integer value) { this.NowMin = value; return this; }
}
public static class CustomerAppAddress
{
public Integer Id = null;
public String Label = null;
public String Street = null;
public String Unit = null;
public String City = null;
public String Zip = null;
public BigDecimal Lat = null;
public BigDecimal Lng = null;
public Boolean InArea = null;
public Integer getId() { return Id; }
public CustomerAppAddress setId(Integer value) { this.Id = value; return this; }
public String getLabel() { return Label; }
public CustomerAppAddress setLabel(String value) { this.Label = value; return this; }
public String getStreet() { return Street; }
public CustomerAppAddress setStreet(String value) { this.Street = value; return this; }
public String getUnit() { return Unit; }
public CustomerAppAddress setUnit(String value) { this.Unit = value; return this; }
public String getCity() { return City; }
public CustomerAppAddress setCity(String value) { this.City = value; return this; }
public String getZip() { return Zip; }
public CustomerAppAddress setZip(String value) { this.Zip = value; return this; }
public BigDecimal getLat() { return Lat; }
public CustomerAppAddress setLat(BigDecimal value) { this.Lat = value; return this; }
public BigDecimal getLng() { return Lng; }
public CustomerAppAddress setLng(BigDecimal value) { this.Lng = value; return this; }
public Boolean isInArea() { return InArea; }
public CustomerAppAddress setInArea(Boolean value) { this.InArea = value; return this; }
}
public static class CustomerAppCard
{
public Integer Id = null;
public String Label = null;
public String Brand = null;
public String Last4 = null;
public Boolean IsDefault = null;
public Integer getId() { return Id; }
public CustomerAppCard setId(Integer value) { this.Id = value; return this; }
public String getLabel() { return Label; }
public CustomerAppCard setLabel(String value) { this.Label = value; return this; }
public String getBrand() { return Brand; }
public CustomerAppCard setBrand(String value) { this.Brand = value; return this; }
public String getLast4() { return Last4; }
public CustomerAppCard setLast4(String value) { this.Last4 = value; return this; }
public Boolean getIsDefault() { return IsDefault; }
public CustomerAppCard setIsDefault(Boolean value) { this.IsDefault = value; return this; }
}
public static class CustomerAppNotif
{
public Boolean Texts = null;
public Boolean Push = null;
public Boolean Promos = null;
public Boolean isTexts() { return Texts; }
public CustomerAppNotif setTexts(Boolean value) { this.Texts = value; return this; }
public Boolean isPush() { return Push; }
public CustomerAppNotif setPush(Boolean value) { this.Push = value; return this; }
public Boolean isPromos() { return Promos; }
public CustomerAppNotif setPromos(Boolean value) { this.Promos = value; return this; }
}
public static class CustomerAppOrder
{
public Integer Id = null;
public String Code = null;
public String Status = null;
public String State = null;
public Boolean Active = null;
public String LevelCode = null;
public String LevelName = null;
public Integer Units = null;
public Integer UnitsFound = null;
public String Address = null;
public String Unit = null;
public String Zip = null;
public String DropAddress = null;
public String RecipientName = null;
public String Handoff = null;
public Boolean IsAsap = null;
public Integer DayIx = null;
public String DateText = null;
public Integer StartMin = null;
public Integer EndMin = null;
public String DriverFirstName = null;
public Integer EtaMin = null;
public String Promise = null;
public String PayMode = null;
public BigDecimal Amount = null;
public BigDecimal Charged = null;
public BigDecimal Tip = null;
public String CardLast4 = null;
public Integer RecurrenceId = null;
public ArrayList<CustomerAppStep> Steps = new ArrayList<CustomerAppStep>();
public Integer getId() { return Id; }
public CustomerAppOrder setId(Integer value) { this.Id = value; return this; }
public String getCode() { return Code; }
public CustomerAppOrder setCode(String value) { this.Code = value; return this; }
public String getStatus() { return Status; }
public CustomerAppOrder setStatus(String value) { this.Status = value; return this; }
public String getState() { return State; }
public CustomerAppOrder setState(String value) { this.State = value; return this; }
public Boolean isActive() { return Active; }
public CustomerAppOrder setActive(Boolean value) { this.Active = value; return this; }
public String getLevelCode() { return LevelCode; }
public CustomerAppOrder setLevelCode(String value) { this.LevelCode = value; return this; }
public String getLevelName() { return LevelName; }
public CustomerAppOrder setLevelName(String value) { this.LevelName = value; return this; }
public Integer getUnits() { return Units; }
public CustomerAppOrder setUnits(Integer value) { this.Units = value; return this; }
public Integer getUnitsFound() { return UnitsFound; }
public CustomerAppOrder setUnitsFound(Integer value) { this.UnitsFound = value; return this; }
public String getAddress() { return Address; }
public CustomerAppOrder setAddress(String value) { this.Address = value; return this; }
public String getUnit() { return Unit; }
public CustomerAppOrder setUnit(String value) { this.Unit = value; return this; }
public String getZip() { return Zip; }
public CustomerAppOrder setZip(String value) { this.Zip = value; return this; }
public String getDropAddress() { return DropAddress; }
public CustomerAppOrder setDropAddress(String value) { this.DropAddress = value; return this; }
public String getRecipientName() { return RecipientName; }
public CustomerAppOrder setRecipientName(String value) { this.RecipientName = value; return this; }
public String getHandoff() { return Handoff; }
public CustomerAppOrder setHandoff(String value) { this.Handoff = value; return this; }
public Boolean getIsAsap() { return IsAsap; }
public CustomerAppOrder setIsAsap(Boolean value) { this.IsAsap = value; return this; }
public Integer getDayIx() { return DayIx; }
public CustomerAppOrder setDayIx(Integer value) { this.DayIx = value; return this; }
public String getDateText() { return DateText; }
public CustomerAppOrder setDateText(String value) { this.DateText = value; return this; }
public Integer getStartMin() { return StartMin; }
public CustomerAppOrder setStartMin(Integer value) { this.StartMin = value; return this; }
public Integer getEndMin() { return EndMin; }
public CustomerAppOrder setEndMin(Integer value) { this.EndMin = value; return this; }
public String getDriverFirstName() { return DriverFirstName; }
public CustomerAppOrder setDriverFirstName(String value) { this.DriverFirstName = value; return this; }
public Integer getEtaMin() { return EtaMin; }
public CustomerAppOrder setEtaMin(Integer value) { this.EtaMin = value; return this; }
public String getPromise() { return Promise; }
public CustomerAppOrder setPromise(String value) { this.Promise = value; return this; }
public String getPayMode() { return PayMode; }
public CustomerAppOrder setPayMode(String value) { this.PayMode = value; return this; }
public BigDecimal getAmount() { return Amount; }
public CustomerAppOrder setAmount(BigDecimal value) { this.Amount = value; return this; }
public BigDecimal getCharged() { return Charged; }
public CustomerAppOrder setCharged(BigDecimal value) { this.Charged = value; return this; }
public BigDecimal getTip() { return Tip; }
public CustomerAppOrder setTip(BigDecimal value) { this.Tip = value; return this; }
public String getCardLast4() { return CardLast4; }
public CustomerAppOrder setCardLast4(String value) { this.CardLast4 = value; return this; }
public Integer getRecurrenceId() { return RecurrenceId; }
public CustomerAppOrder setRecurrenceId(Integer value) { this.RecurrenceId = value; return this; }
public ArrayList<CustomerAppStep> getSteps() { return Steps; }
public CustomerAppOrder setSteps(ArrayList<CustomerAppStep> value) { this.Steps = value; return this; }
}
public static class CustomerAppStep
{
public String Key = null;
public Boolean Done = null;
public String Time = null;
public String getKey() { return Key; }
public CustomerAppStep setKey(String value) { this.Key = value; return this; }
public Boolean isDone() { return Done; }
public CustomerAppStep setDone(Boolean value) { this.Done = value; return this; }
public String getTime() { return Time; }
public CustomerAppStep setTime(String value) { this.Time = value; return this; }
}
public static class CustomerAppRecurrence
{
public Integer Id = null;
public Integer Weekday = null;
public Integer StartMin = null;
public Integer EndMin = null;
public String Cadence = null;
public String LevelCode = null;
public Integer Units = null;
public String Handoff = null;
public String Address = null;
public Boolean Paused = null;
public String PayMode = null;
public String CardLast4 = null;
public String NextDate = null;
public String SkippedDate = null;
public Integer AheadDays = null;
public Integer getId() { return Id; }
public CustomerAppRecurrence setId(Integer value) { this.Id = value; return this; }
public Integer getWeekday() { return Weekday; }
public CustomerAppRecurrence setWeekday(Integer value) { this.Weekday = value; return this; }
public Integer getStartMin() { return StartMin; }
public CustomerAppRecurrence setStartMin(Integer value) { this.StartMin = value; return this; }
public Integer getEndMin() { return EndMin; }
public CustomerAppRecurrence setEndMin(Integer value) { this.EndMin = value; return this; }
public String getCadence() { return Cadence; }
public CustomerAppRecurrence setCadence(String value) { this.Cadence = value; return this; }
public String getLevelCode() { return LevelCode; }
public CustomerAppRecurrence setLevelCode(String value) { this.LevelCode = value; return this; }
public Integer getUnits() { return Units; }
public CustomerAppRecurrence setUnits(Integer value) { this.Units = value; return this; }
public String getHandoff() { return Handoff; }
public CustomerAppRecurrence setHandoff(String value) { this.Handoff = value; return this; }
public String getAddress() { return Address; }
public CustomerAppRecurrence setAddress(String value) { this.Address = value; return this; }
public Boolean isPaused() { return Paused; }
public CustomerAppRecurrence setPaused(Boolean value) { this.Paused = value; return this; }
public String getPayMode() { return PayMode; }
public CustomerAppRecurrence setPayMode(String value) { this.PayMode = value; return this; }
public String getCardLast4() { return CardLast4; }
public CustomerAppRecurrence setCardLast4(String value) { this.CardLast4 = value; return this; }
public String getNextDate() { return NextDate; }
public CustomerAppRecurrence setNextDate(String value) { this.NextDate = value; return this; }
public String getSkippedDate() { return SkippedDate; }
public CustomerAppRecurrence setSkippedDate(String value) { this.SkippedDate = value; return this; }
public Integer getAheadDays() { return AheadDays; }
public CustomerAppRecurrence setAheadDays(Integer value) { this.AheadDays = value; return this; }
}
public static class CustomerAppInvoice
{
public UUID Uid = null;
public String Number = null;
public String DateText = null;
public BigDecimal Total = null;
public BigDecimal Balance = null;
public Boolean Paid = null;
public UUID getUid() { return Uid; }
public CustomerAppInvoice setUid(UUID value) { this.Uid = value; return this; }
public String getNumber() { return Number; }
public CustomerAppInvoice setNumber(String value) { this.Number = value; return this; }
public String getDateText() { return DateText; }
public CustomerAppInvoice setDateText(String value) { this.DateText = value; return this; }
public BigDecimal getTotal() { return Total; }
public CustomerAppInvoice setTotal(BigDecimal value) { this.Total = value; return this; }
public BigDecimal getBalance() { return Balance; }
public CustomerAppInvoice setBalance(BigDecimal value) { this.Balance = value; return this; }
public Boolean isPaid() { return Paid; }
public CustomerAppInvoice setPaid(Boolean value) { this.Paid = value; return this; }
}
public static class CourierBookOrderResponse
{
public Boolean Done = null;
public Boolean NeedsAction = null;
public String ClientSecret = null;
public String SetupIntentId = null;
public String Code = null;
public String TrackUrl = null;
public String IcsUrl = null;
public String WindowText = null;
public String Promise = null;
public BigDecimal Total = null;
public String PayTiming = null;
public String CardLast4 = null;
public String Repeats = null;
public String LinkSentBy = null;
public String ReopenStep = null;
public ResponseStatus ResponseStatus = null;
public Boolean isDone() { return Done; }
public CourierBookOrderResponse setDone(Boolean value) { this.Done = value; return this; }
public Boolean isNeedsAction() { return NeedsAction; }
public CourierBookOrderResponse setNeedsAction(Boolean value) { this.NeedsAction = value; return this; }
public String getClientSecret() { return ClientSecret; }
public CourierBookOrderResponse setClientSecret(String value) { this.ClientSecret = value; return this; }
public String getSetupIntentId() { return SetupIntentId; }
public CourierBookOrderResponse setSetupIntentId(String value) { this.SetupIntentId = value; return this; }
public String getCode() { return Code; }
public CourierBookOrderResponse setCode(String value) { this.Code = value; return this; }
public String getTrackUrl() { return TrackUrl; }
public CourierBookOrderResponse setTrackUrl(String value) { this.TrackUrl = value; return this; }
public String getIcsUrl() { return IcsUrl; }
public CourierBookOrderResponse setIcsUrl(String value) { this.IcsUrl = value; return this; }
public String getWindowText() { return WindowText; }
public CourierBookOrderResponse setWindowText(String value) { this.WindowText = value; return this; }
public String getPromise() { return Promise; }
public CourierBookOrderResponse setPromise(String value) { this.Promise = value; return this; }
public BigDecimal getTotal() { return Total; }
public CourierBookOrderResponse setTotal(BigDecimal value) { this.Total = value; return this; }
public String getPayTiming() { return PayTiming; }
public CourierBookOrderResponse setPayTiming(String value) { this.PayTiming = value; return this; }
public String getCardLast4() { return CardLast4; }
public CourierBookOrderResponse setCardLast4(String value) { this.CardLast4 = value; return this; }
public String getRepeats() { return Repeats; }
public CourierBookOrderResponse setRepeats(String value) { this.Repeats = value; return this; }
public String getLinkSentBy() { return LinkSentBy; }
public CourierBookOrderResponse setLinkSentBy(String value) { this.LinkSentBy = value; return this; }
public String getReopenStep() { return ReopenStep; }
public CourierBookOrderResponse setReopenStep(String value) { this.ReopenStep = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CourierBookOrderResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CourierCustomerRow
{
public Integer ContactId = null;
public String Name = null;
public String Phone = null;
public String BillingMode = null;
public String AccountCode = null;
public Integer Orders = null;
public Date LastOrderAt = null;
public Integer Unbilled = null;
public BigDecimal UnbilledAmount = null;
public Integer Cards = null;
public Integer getContactId() { return ContactId; }
public CourierCustomerRow setContactId(Integer value) { this.ContactId = value; return this; }
public String getName() { return Name; }
public CourierCustomerRow setName(String value) { this.Name = value; return this; }
public String getPhone() { return Phone; }
public CourierCustomerRow setPhone(String value) { this.Phone = value; return this; }
public String getBillingMode() { return BillingMode; }
public CourierCustomerRow setBillingMode(String value) { this.BillingMode = value; return this; }
public String getAccountCode() { return AccountCode; }
public CourierCustomerRow setAccountCode(String value) { this.AccountCode = value; return this; }
public Integer getOrders() { return Orders; }
public CourierCustomerRow setOrders(Integer value) { this.Orders = value; return this; }
public Date getLastOrderAt() { return LastOrderAt; }
public CourierCustomerRow setLastOrderAt(Date value) { this.LastOrderAt = value; return this; }
public Integer getUnbilled() { return Unbilled; }
public CourierCustomerRow setUnbilled(Integer value) { this.Unbilled = value; return this; }
public BigDecimal getUnbilledAmount() { return UnbilledAmount; }
public CourierCustomerRow setUnbilledAmount(BigDecimal value) { this.UnbilledAmount = value; return this; }
public Integer getCards() { return Cards; }
public CourierCustomerRow setCards(Integer value) { this.Cards = value; return this; }
}
public static class RunResult
{
public Integer Invoices = null;
public Integer Orders = null;
public BigDecimal Total = null;
public ArrayList<String> Skipped = new ArrayList<String>();
public Integer getInvoices() { return Invoices; }
public RunResult setInvoices(Integer value) { this.Invoices = value; return this; }
public Integer getOrders() { return Orders; }
public RunResult setOrders(Integer value) { this.Orders = value; return this; }
public BigDecimal getTotal() { return Total; }
public RunResult setTotal(BigDecimal value) { this.Total = value; return this; }
public ArrayList<String> getSkipped() { return Skipped; }
public RunResult setSkipped(ArrayList<String> value) { this.Skipped = value; return this; }
}
}
Java CourierCustomersRequest 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.
GET /v1/dispatch/courier/customers HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Boot:
{
Profile: String,
Available: False,
Reason: String,
AuthMethod: String,
Slug: String,
Page:
{
Available: False,
BookingOn: False,
Business:
{
Name: String,
Phone: String
},
Profile:
{
Code: String,
Name: String,
Shape: String,
Template: String,
UnitOne: String,
UnitMany: String,
UnitOneEs: String,
UnitManyEs: String,
FacilityNoun: String,
FacilityNounEs: String,
FacilityName: String,
Levels:
[
{
Code: String,
Name: String,
Ready: String,
WithinMin: 0,
InBy: String,
Surcharge: 0,
Days:
[
0
],
DeadlineMin: 0
}
],
Asap: False,
Recurring: False,
PayTiming: String,
FinalAfterCount: False,
CancelFee: 0,
MissedFee: 0,
MissedWaitMin: 0,
ServiceArea:
[
String
],
Zips:
[
String
],
Handoffs:
{
Hand: False,
Porch: False,
Desk: False,
SigRequired: False,
IdRequired: False,
CodeRequired: False
}
},
Profiles:
[
{
Code: String,
Name: String,
Shape: String
}
],
CardEnabled: False,
PublishableKey: String,
AppUrl: String,
Today: String,
Weekday: 0,
NowMin: 0
},
ManifestUrl: String
},
Customer:
{
ContactId: 0,
FirstName: String,
LastName: String,
Name: String,
Phone: String,
NeedsName: False,
BillingMode: String,
AccountCode: String,
Addresses:
[
{
Id: 0,
Label: String,
Street: String,
Unit: String,
City: String,
Zip: String,
Lat: 0,
Lng: 0,
InArea: False
}
],
Cards:
[
{
Id: 0,
Label: String,
Brand: String,
Last4: String,
IsDefault: False
}
],
Notif:
{
Texts: False,
Push: False,
Promos: False
},
Orders:
[
{
Id: 0,
Code: String,
Status: String,
State: String,
Active: False,
LevelCode: String,
LevelName: String,
Units: 0,
UnitsFound: 0,
Address: String,
Unit: String,
Zip: String,
DropAddress: String,
RecipientName: String,
Handoff: String,
IsAsap: False,
DayIx: 0,
DateText: String,
StartMin: 0,
EndMin: 0,
DriverFirstName: String,
EtaMin: 0,
Promise: String,
PayMode: String,
Amount: 0,
Charged: 0,
Tip: 0,
CardLast4: String,
RecurrenceId: 0,
Steps:
[
{
Key: String,
Done: False,
Time: String
}
]
}
],
Recurring:
[
{
Id: 0,
Weekday: 0,
StartMin: 0,
EndMin: 0,
Cadence: String,
LevelCode: String,
Units: 0,
Handoff: String,
Address: String,
Paused: False,
PayMode: String,
CardLast4: String,
NextDate: String,
SkippedDate: String,
AheadDays: 0
}
],
Invoices:
[
{
Uid: 00000000000000000000000000000000,
Number: String,
DateText: String,
Total: 0,
Balance: 0,
Paid: False
}
],
Today: String,
NowMin: 0
},
Addresses:
[
{
Id: 0,
Label: String,
Street: String,
Unit: String,
City: String,
Zip: String,
Lat: 0,
Lng: 0,
InArea: False
}
],
Cards:
[
{
Id: 0,
Label: String,
Brand: String,
Last4: String,
IsDefault: False
}
],
Notif:
{
Texts: False,
Push: False,
Promos: False
},
Recurring:
[
{
Id: 0,
Weekday: 0,
StartMin: 0,
EndMin: 0,
Cadence: String,
LevelCode: String,
Units: 0,
Handoff: String,
Address: String,
Paused: False,
PayMode: String,
CardLast4: String,
NextDate: String,
SkippedDate: String,
AheadDays: 0
}
],
Booked:
{
Done: False,
NeedsAction: False,
ClientSecret: String,
SetupIntentId: String,
Code: String,
TrackUrl: String,
IcsUrl: String,
WindowText: String,
Promise: String,
Total: 0,
PayTiming: String,
CardLast4: String,
Repeats: String,
LinkSentBy: String,
ReopenStep: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
},
Sent: False,
Token: String,
NeedsName: False,
Name: String,
Url: String,
ClientSecret: String,
PublishableKey: String,
Message: String,
ReopenStep: String,
Customers:
[
{
ContactId: 0,
Name: String,
Phone: String,
BillingMode: String,
AccountCode: String,
Orders: 0,
LastOrderAt: 0001-01-01,
Unbilled: 0,
UnbilledAmount: 0,
Cards: 0
}
],
Run:
{
Invoices: 0,
Orders: 0,
Total: 0,
Skipped:
[
String
]
},
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}