Trendsic Platform Service

<back to all web services

CourierBookOrderRequest

The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<CourierBookOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Address>String</Address>
  <City>String</City>
  <DropAddress>String</DropAddress>
  <DropCity>String</DropCity>
  <DropLat>0</DropLat>
  <DropLng>0</DropLng>
  <DropUnit>String</DropUnit>
  <DropZip>String</DropZip>
  <Email>String</Email>
  <GateCode>String</GateCode>
  <Handoff>String</Handoff>
  <Lang>String</Lang>
  <Lat>0</Lat>
  <Level>String</Level>
  <Lng>0</Lng>
  <Name>String</Name>
  <Note>String</Note>
  <PaymentMethodId>String</PaymentMethodId>
  <Phone>String</Phone>
  <PickupName>String</PickupName>
  <Profile>String</Profile>
  <QuotedTotal>0</QuotedTotal>
  <RecipientName>String</RecipientName>
  <Recur>String</Recur>
  <SetupIntentId>String</SetupIntentId>
  <Slug>String</Slug>
  <SmsConsent>false</SmsConsent>
  <Terms>false</Terms>
  <TurnstileToken>String</TurnstileToken>
  <Unit>String</Unit>
  <Units>0</Units>
  <WindowId>String</WindowId>
  <Zip>String</Zip>
</CourierBookOrderRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CourierBookOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CardLast4>String</CardLast4>
  <ClientSecret>String</ClientSecret>
  <Code>String</Code>
  <Done>false</Done>
  <IcsUrl>String</IcsUrl>
  <LinkSentBy>String</LinkSentBy>
  <NeedsAction>false</NeedsAction>
  <PayTiming>String</PayTiming>
  <Promise>String</Promise>
  <ReopenStep>String</ReopenStep>
  <Repeats>String</Repeats>
  <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>
  <SetupIntentId>String</SetupIntentId>
  <Total>0</Total>
  <TrackUrl>String</TrackUrl>
  <WindowText>String</WindowText>
</CourierBookOrderResponse>