| POST,OPTIONS | /v1/book/{Slug}/orders | ||
|---|---|---|---|
| POST,OPTIONS | /v1/book/{Slug}/orders/confirm |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CourierBookOrderRequest
{
public String Slug = null;
public String Profile = null;
public String TurnstileToken = null;
public String Level = null;
public String WindowId = null;
public String Recur = null;
public String Address = null;
public String Unit = null;
public String City = null;
public String Zip = null;
public BigDecimal Lat = null;
public BigDecimal Lng = null;
public String PickupName = null;
public String DropAddress = null;
public String DropUnit = null;
public String DropCity = null;
public String DropZip = null;
public BigDecimal DropLat = null;
public BigDecimal DropLng = null;
public String RecipientName = null;
public Integer Units = null;
public String Handoff = null;
public String GateCode = null;
public String Note = null;
public String Name = null;
public String Phone = null;
public String Email = null;
public Boolean SmsConsent = null;
public Boolean Terms = null;
public String PaymentMethodId = null;
public String SetupIntentId = null;
public BigDecimal QuotedTotal = null;
public String Lang = null;
public String getSlug() { return Slug; }
public CourierBookOrderRequest setSlug(String value) { this.Slug = value; return this; }
public String getProfile() { return Profile; }
public CourierBookOrderRequest setProfile(String value) { this.Profile = value; return this; }
public String getTurnstileToken() { return TurnstileToken; }
public CourierBookOrderRequest setTurnstileToken(String value) { this.TurnstileToken = value; return this; }
public String getLevel() { return Level; }
public CourierBookOrderRequest setLevel(String value) { this.Level = value; return this; }
public String getWindowId() { return WindowId; }
public CourierBookOrderRequest setWindowId(String value) { this.WindowId = value; return this; }
public String getRecur() { return Recur; }
public CourierBookOrderRequest setRecur(String value) { this.Recur = value; return this; }
public String getAddress() { return Address; }
public CourierBookOrderRequest setAddress(String value) { this.Address = value; return this; }
public String getUnit() { return Unit; }
public CourierBookOrderRequest setUnit(String value) { this.Unit = value; return this; }
public String getCity() { return City; }
public CourierBookOrderRequest setCity(String value) { this.City = value; return this; }
public String getZip() { return Zip; }
public CourierBookOrderRequest setZip(String value) { this.Zip = value; return this; }
public BigDecimal getLat() { return Lat; }
public CourierBookOrderRequest setLat(BigDecimal value) { this.Lat = value; return this; }
public BigDecimal getLng() { return Lng; }
public CourierBookOrderRequest setLng(BigDecimal value) { this.Lng = value; return this; }
public String getPickupName() { return PickupName; }
public CourierBookOrderRequest setPickupName(String value) { this.PickupName = value; return this; }
public String getDropAddress() { return DropAddress; }
public CourierBookOrderRequest setDropAddress(String value) { this.DropAddress = value; return this; }
public String getDropUnit() { return DropUnit; }
public CourierBookOrderRequest setDropUnit(String value) { this.DropUnit = value; return this; }
public String getDropCity() { return DropCity; }
public CourierBookOrderRequest setDropCity(String value) { this.DropCity = value; return this; }
public String getDropZip() { return DropZip; }
public CourierBookOrderRequest setDropZip(String value) { this.DropZip = value; return this; }
public BigDecimal getDropLat() { return DropLat; }
public CourierBookOrderRequest setDropLat(BigDecimal value) { this.DropLat = value; return this; }
public BigDecimal getDropLng() { return DropLng; }
public CourierBookOrderRequest setDropLng(BigDecimal value) { this.DropLng = value; return this; }
public String getRecipientName() { return RecipientName; }
public CourierBookOrderRequest setRecipientName(String value) { this.RecipientName = value; return this; }
public Integer getUnits() { return Units; }
public CourierBookOrderRequest setUnits(Integer value) { this.Units = value; return this; }
public String getHandoff() { return Handoff; }
public CourierBookOrderRequest setHandoff(String value) { this.Handoff = value; return this; }
public String getGateCode() { return GateCode; }
public CourierBookOrderRequest setGateCode(String value) { this.GateCode = value; return this; }
public String getNote() { return Note; }
public CourierBookOrderRequest setNote(String value) { this.Note = value; return this; }
public String getName() { return Name; }
public CourierBookOrderRequest setName(String value) { this.Name = value; return this; }
public String getPhone() { return Phone; }
public CourierBookOrderRequest setPhone(String value) { this.Phone = value; return this; }
public String getEmail() { return Email; }
public CourierBookOrderRequest setEmail(String value) { this.Email = value; return this; }
public Boolean isSmsConsent() { return SmsConsent; }
public CourierBookOrderRequest setSmsConsent(Boolean value) { this.SmsConsent = value; return this; }
public Boolean isTerms() { return Terms; }
public CourierBookOrderRequest setTerms(Boolean value) { this.Terms = value; return this; }
public String getPaymentMethodId() { return PaymentMethodId; }
public CourierBookOrderRequest setPaymentMethodId(String value) { this.PaymentMethodId = value; return this; }
public String getSetupIntentId() { return SetupIntentId; }
public CourierBookOrderRequest setSetupIntentId(String value) { this.SetupIntentId = value; return this; }
public BigDecimal getQuotedTotal() { return QuotedTotal; }
public CourierBookOrderRequest setQuotedTotal(BigDecimal value) { this.QuotedTotal = value; return this; }
public String getLang() { return Lang; }
public CourierBookOrderRequest setLang(String value) { this.Lang = 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; }
}
}
Java CourierBookOrderRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/book/{Slug}/orders HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Slug":"String","Profile":"String","TurnstileToken":"String","Level":"String","WindowId":"String","Recur":"String","Address":"String","Unit":"String","City":"String","Zip":"String","Lat":0,"Lng":0,"PickupName":"String","DropAddress":"String","DropUnit":"String","DropCity":"String","DropZip":"String","DropLat":0,"DropLng":0,"RecipientName":"String","Units":0,"Handoff":"String","GateCode":"String","Note":"String","Name":"String","Phone":"String","Email":"String","SmsConsent":false,"Terms":false,"PaymentMethodId":"String","SetupIntentId":"String","QuotedTotal":0,"Lang":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"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"}}}