| POST,OPTIONS | /v1/dispatch/haul/offline |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class DispatchActionResponse
Public Overridable Property Board As DispatchBoardView
Public Overridable Property Message As String
Public Overridable Property Sent As Integer
Public Overridable Property Failed As Integer
Public Overridable Property TicketCode As String
Public Overridable Property TicketNet As Decimal
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class DispatchAutopilotView
Public Overridable Property IsOn As Boolean
Public Overridable Property RuleSlot As Boolean
Public Overridable Property RuleRoute As Boolean
Public Overridable Property RuleRelease As Boolean
Public Overridable Property RuleTract As Boolean
Public Overridable Property RuleThrottle As Boolean
Public Overridable Property RuleOffline As Boolean
Public Overridable Property ThStaged As Integer
Public Overridable Property ThWait As Integer
Public Overridable Property ThBand As Integer
Public Overridable Property ThStall As Integer
Public Overridable Property ThFeed As Integer
End Class
Public Partial Class DispatchBoardView
Public Overridable Property Pack As DispatchPackConfigView
Public Overridable Property Config As DispatchHaulConfigView
Public Overridable Property OfflineWindows As List(Of DispatchOfflineWindowView) = New List(Of DispatchOfflineWindowView)
Public Overridable Property Suppliers As List(Of DispatchSupplierView) = New List(Of DispatchSupplierView)
Public Overridable Property Trucks As List(Of DispatchTruckView) = New List(Of DispatchTruckView)
Public Overridable Property Slots As List(Of DispatchSlotView) = New List(Of DispatchSlotView)
Public Overridable Property Tickets As List(Of DispatchTicketView) = New List(Of DispatchTicketView)
Public Overridable Property Log As List(Of DispatchLogView) = New List(Of DispatchLogView)
Public Overridable Property Autopilot As DispatchAutopilotView
Public Overridable Property Exceptions As List(Of DispatchExceptionView) = New List(Of DispatchExceptionView)
Public Overridable Property Feed As List(Of DispatchFeedView) = New List(Of DispatchFeedView)
Public Overridable Property Rigs As List(Of DispatchRigView) = New List(Of DispatchRigView)
Public Overridable Property Jobs As List(Of DispatchJobView) = New List(Of DispatchJobView)
Public Overridable Property OdDrivers As List(Of DispatchOdDriverView) = New List(Of DispatchOdDriverView)
Public Overridable Property OdRequests As List(Of DispatchOdRequestView) = New List(Of DispatchOdRequestView)
Public Overridable Property Packs As List(Of DispatchPackView) = New List(Of DispatchPackView)
Public Overridable Property PackTerms As List(Of DispatchPackTermView) = New List(Of DispatchPackTermView)
Public Overridable Property PackUnits As List(Of DispatchPackUnitView) = New List(Of DispatchPackUnitView)
End Class
Public Partial Class DispatchExceptionView
Public Overridable Property Code As String
Public Overridable Property Kind As String
Public Overridable Property Severity As String
Public Overridable Property TruckCode As String
Public Overridable Property SupplierCode As String
Public Overridable Property RaisedAt As Date
Public Overridable Property RaisedLabel As String
Public Overridable Property MinsAgo As Integer
End Class
Public Partial Class DispatchFeedView
Public Overridable Property FeedId As Integer
Public Overridable Property EntryAt As Date
Public Overridable Property EntryLabel As String
Public Overridable Property Channel As String
Public Overridable Property Kind As String
Public Overridable Property TruckCode As String
Public Overridable Property SupplierCode As String
Public Overridable Property OverrideText As String
Public Overridable Property MinsAgo As Integer
End Class
Public Partial Class DispatchHaulConfigView
Public Overridable Property QueueMax As Integer
Public Overridable Property DumpBays As Integer
Public Overridable Property SlotCap As Integer
Public Overridable Property Paused As Boolean
Public Overridable Property FeedRate As Integer
End Class
Public Partial Class DispatchJobView
Public Overridable Property JobId As Integer
Public Overridable Property Code As String
Public Overridable Property Cargo As String
Public Overridable Property Customer As String
Public Overridable Property CustomerPhone As String
Public Overridable Property HoldContact As String
Public Overridable Property HoldPhone As String
Public Overridable Property FromLoc As String
Public Overridable Property ToLoc As String
Public Overridable Property Miles As Integer
Public Overridable Property WindowText As String
Public Overridable Property Stage As String
Public Overridable Property Rate As Decimal?
Public Overridable Property RequiredRig As String
Public Overridable Property DriverLabel As String
Public Overridable Property EtaText As String
Public Overridable Property OfferRigIds As String
Public Overridable Property OfferExpiresMin As Integer?
Public Overridable Property OfferExpired As Boolean
Public Overridable Property Declined As Boolean
End Class
Public Partial Class DispatchLogView
Public Overridable Property LogId As Integer
Public Overridable Property LoggedAt As Date
Public Overridable Property LoggedMin As Integer
Public Overridable Property LogText As String
Public Overridable Property Kind As String
Public Overridable Property MinsAgo As Integer
End Class
Public Partial Class DispatchOdDriverView
Public Overridable Property DriverId As Integer
Public Overridable Property Code As String
Public Overridable Property Name As String
Public Overridable Property Zone As String
Public Overridable Property Phone As String
Public Overridable Property Status As String
Public Overridable Property Tier As String
Public Overridable Property DistanceMi As Decimal
Public Overridable Property Capabilities As String
End Class
Public Partial Class DispatchOdRequestView
Public Overridable Property RequestId As Integer
Public Overridable Property Code As String
Public Overridable Property Address As String
Public Overridable Property Zone As String
Public Overridable Property Bags As Integer
Public Overridable Property Stage As String
Public Overridable Property DriverCode As String
Public Overridable Property Needs As String
Public Overridable Property Note As String
Public Overridable Property PingExpiresMin As Integer?
Public Overridable Property TriedCodes As String
Public Overridable Property CandidateCodes As String
Public Overridable Property EtaText As String
Public Overridable Property NoDriver As String
End Class
Public Partial Class DispatchOfflineAddRequest
Public Overridable Property FromHour As String
Public Overridable Property ToHour As String
Public Overridable Property AtMin As Integer
End Class
Public Partial Class DispatchOfflineWindowView
Public Overridable Property OfflineWindowId As Integer
Public Overridable Property FromHour As String
Public Overridable Property ToHour As String
End Class
Public Partial Class DispatchPackConfigView
Public Overridable Property PackId As String
Public Overridable Property HasQuotas As Boolean
Public Overridable Property IsInverted As Boolean
Public Overridable Property LoadLimitMins As Integer
Public Overridable Property TicketSource As String
Public Overridable Property PayBasis As String
Public Overridable Property DayBoundary As String
End Class
Public Partial Class DispatchPackTermView
Public Overridable Property PackId As String
Public Overridable Property Lang As String
Public Overridable Property ModeName As String
Public Overridable Property Facility As String
Public Overridable Property FacilityShort As String
Public Overridable Property SourceSite As String
Public Overridable Property Supplier As String
Public Overridable Property SupplierPlural As String
Public Overridable Property UnloadVerb As String
Public Overridable Property TicketNoun As String
Public Overridable Property DayNoun As String
Public Overridable Property FleetLabel As String
Public Overridable Property PageSubtitle As String
Public Overridable Property SeasonChip As String
Public Overridable Property CampaignNoun As String
Public Overridable Property BayNoun As String
Public Overridable Property AssignTarget As String
End Class
Public Partial Class DispatchPackUnitView
Public Overridable Property PackId As String
Public Overridable Property Unit As String
Public Overridable Property LoadQty As Decimal
Public Overridable Property VolumeLow As Integer
Public Overridable Property VolumeHigh As Integer
Public Overridable Property SeasonMultiple As Decimal
Public Overridable Property WeeklyFraction As Decimal
End Class
Public Partial Class DispatchPackView
Public Overridable Property PackId As String
Public Overridable Property HasQuotas As Boolean
Public Overridable Property IsInverted As Boolean
Public Overridable Property LoadLimitMins As Integer
Public Overridable Property DayBoundary As String
Public Overridable Property TicketSource As String
Public Overridable Property PayBasis As String
Public Overridable Property SortOrder As Integer
End Class
Public Partial Class DispatchRigView
Public Overridable Property RigId As Integer
Public Overridable Property Code As String
Public Overridable Property Name As String
Public Overridable Property DriverName As String
Public Overridable Property Phone As String
Public Overridable Property RigType As String
Public Overridable Property IsFree As Boolean
Public Overridable Property MatchRank As Integer
End Class
Public Partial Class DispatchSiteView
Public Overridable Property SiteId As Integer
Public Overridable Property SupplierId As Integer
Public Overridable Property SupplierCode As String
Public Overridable Property Name As String
Public Overridable Property Acres As Integer
Public Overridable Property StandingVolume As Decimal
Public Overridable Property SortOrder As Integer
End Class
Public Partial Class DispatchSlotView
Public Overridable Property SlotId As Integer
Public Overridable Property Hour As String
Public Overridable Property BaseBooked As Integer
Public Overridable Property SortOrder As Integer
End Class
Public Partial Class DispatchSupplierView
Public Overridable Property SupplierId As Integer
Public Overridable Property Code As String
Public Overridable Property Name As String
Public Overridable Property Region As String
Public Overridable Property OwnHauler As Boolean
Public Overridable Property SeasonAllotment As Decimal
Public Overridable Property Delivered As Decimal
Public Overridable Property WeekCap As Decimal
Public Overridable Property WeekDelivered As Decimal
Public Overridable Property SortOrder As Integer
Public Overridable Property Sites As List(Of DispatchSiteView) = New List(Of DispatchSiteView)
End Class
Public Partial Class DispatchTicketView
Public Overridable Property TicketId As Integer
Public Overridable Property Code As String
Public Overridable Property TruckCode As String
Public Overridable Property SupplierCode As String
Public Overridable Property NetQty As Decimal
Public Overridable Property TicketedAt As Date
Public Overridable Property TicketedMin As Integer
Public Overridable Property Source As String
Public Overridable Property MinsAgo As Integer
End Class
Public Partial Class DispatchTruckView
Public Overridable Property TruckId As Integer
Public Overridable Property Code As String
Public Overridable Property DriverName As String
Public Overridable Property Phone As String
Public Overridable Property EmployerCode As String
Public Overridable Property SupplierCode As String
Public Overridable Property SiteName As String
Public Overridable Property EstLoad As Decimal
Public Overridable Property Stage As String
Public Overridable Property StageSince As Integer
Public Overridable Property CycleStart As Integer?
Public Overridable Property StageMinsAgo As Integer
Public Overridable Property CycleMinsAgo As Integer?
Public Overridable Property Slot As String
Public Overridable Property LoadsToday As Integer
Public Overridable Property NetToday As Decimal
Public Overridable Property LastPingMins As Integer
Public Overridable Property CycleMins As String
Public Overridable Property IsInteractive As Boolean
Public Overridable Property NextSupplierCode As String
Public Overridable Property NextSiteName As String
End Class
End Namespace
End Namespace
VB.NET DispatchOfflineAddRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/dispatch/haul/offline HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DispatchOfflineAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AtMin>0</AtMin>
<FromHour>String</FromHour>
<ToHour>String</ToHour>
</DispatchOfflineAddRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DispatchActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Board>
<Autopilot>
<IsOn>false</IsOn>
<RuleOffline>false</RuleOffline>
<RuleRelease>false</RuleRelease>
<RuleRoute>false</RuleRoute>
<RuleSlot>false</RuleSlot>
<RuleThrottle>false</RuleThrottle>
<RuleTract>false</RuleTract>
<ThBand>0</ThBand>
<ThFeed>0</ThFeed>
<ThStaged>0</ThStaged>
<ThStall>0</ThStall>
<ThWait>0</ThWait>
</Autopilot>
<Config>
<DumpBays>0</DumpBays>
<FeedRate>0</FeedRate>
<Paused>false</Paused>
<QueueMax>0</QueueMax>
<SlotCap>0</SlotCap>
</Config>
<Exceptions>
<DispatchExceptionView>
<Code>String</Code>
<Kind>String</Kind>
<MinsAgo>0</MinsAgo>
<RaisedAt>0001-01-01T00:00:00</RaisedAt>
<RaisedLabel>String</RaisedLabel>
<Severity>String</Severity>
<SupplierCode>String</SupplierCode>
<TruckCode>String</TruckCode>
</DispatchExceptionView>
</Exceptions>
<Feed>
<DispatchFeedView>
<Channel>String</Channel>
<EntryAt>0001-01-01T00:00:00</EntryAt>
<EntryLabel>String</EntryLabel>
<FeedId>0</FeedId>
<Kind>String</Kind>
<MinsAgo>0</MinsAgo>
<OverrideText>String</OverrideText>
<SupplierCode>String</SupplierCode>
<TruckCode>String</TruckCode>
</DispatchFeedView>
</Feed>
<Jobs>
<DispatchJobView>
<Cargo>String</Cargo>
<Code>String</Code>
<Customer>String</Customer>
<CustomerPhone>String</CustomerPhone>
<Declined>false</Declined>
<DriverLabel>String</DriverLabel>
<EtaText>String</EtaText>
<FromLoc>String</FromLoc>
<HoldContact>String</HoldContact>
<HoldPhone>String</HoldPhone>
<JobId>0</JobId>
<Miles>0</Miles>
<OfferExpired>false</OfferExpired>
<OfferExpiresMin>0</OfferExpiresMin>
<OfferRigIds>String</OfferRigIds>
<Rate>0</Rate>
<RequiredRig>String</RequiredRig>
<Stage>String</Stage>
<ToLoc>String</ToLoc>
<WindowText>String</WindowText>
</DispatchJobView>
</Jobs>
<Log>
<DispatchLogView>
<Kind>String</Kind>
<LogId>0</LogId>
<LogText>String</LogText>
<LoggedAt>0001-01-01T00:00:00</LoggedAt>
<LoggedMin>0</LoggedMin>
<MinsAgo>0</MinsAgo>
</DispatchLogView>
</Log>
<OdDrivers>
<DispatchOdDriverView>
<Capabilities>String</Capabilities>
<Code>String</Code>
<DistanceMi>0</DistanceMi>
<DriverId>0</DriverId>
<Name>String</Name>
<Phone>String</Phone>
<Status>String</Status>
<Tier>String</Tier>
<Zone>String</Zone>
</DispatchOdDriverView>
</OdDrivers>
<OdRequests>
<DispatchOdRequestView>
<Address>String</Address>
<Bags>0</Bags>
<CandidateCodes>String</CandidateCodes>
<Code>String</Code>
<DriverCode>String</DriverCode>
<EtaText>String</EtaText>
<Needs>String</Needs>
<NoDriver>String</NoDriver>
<Note>String</Note>
<PingExpiresMin>0</PingExpiresMin>
<RequestId>0</RequestId>
<Stage>String</Stage>
<TriedCodes>String</TriedCodes>
<Zone>String</Zone>
</DispatchOdRequestView>
</OdRequests>
<OfflineWindows>
<DispatchOfflineWindowView>
<FromHour>String</FromHour>
<OfflineWindowId>0</OfflineWindowId>
<ToHour>String</ToHour>
</DispatchOfflineWindowView>
</OfflineWindows>
<Pack>
<DayBoundary>String</DayBoundary>
<HasQuotas>false</HasQuotas>
<IsInverted>false</IsInverted>
<LoadLimitMins>0</LoadLimitMins>
<PackId>String</PackId>
<PayBasis>String</PayBasis>
<TicketSource>String</TicketSource>
</Pack>
<PackTerms>
<DispatchPackTermView>
<AssignTarget>String</AssignTarget>
<BayNoun>String</BayNoun>
<CampaignNoun>String</CampaignNoun>
<DayNoun>String</DayNoun>
<Facility>String</Facility>
<FacilityShort>String</FacilityShort>
<FleetLabel>String</FleetLabel>
<Lang>String</Lang>
<ModeName>String</ModeName>
<PackId>String</PackId>
<PageSubtitle>String</PageSubtitle>
<SeasonChip>String</SeasonChip>
<SourceSite>String</SourceSite>
<Supplier>String</Supplier>
<SupplierPlural>String</SupplierPlural>
<TicketNoun>String</TicketNoun>
<UnloadVerb>String</UnloadVerb>
</DispatchPackTermView>
</PackTerms>
<PackUnits>
<DispatchPackUnitView>
<LoadQty>0</LoadQty>
<PackId>String</PackId>
<SeasonMultiple>0</SeasonMultiple>
<Unit>String</Unit>
<VolumeHigh>0</VolumeHigh>
<VolumeLow>0</VolumeLow>
<WeeklyFraction>0</WeeklyFraction>
</DispatchPackUnitView>
</PackUnits>
<Packs>
<DispatchPackView>
<DayBoundary>String</DayBoundary>
<HasQuotas>false</HasQuotas>
<IsInverted>false</IsInverted>
<LoadLimitMins>0</LoadLimitMins>
<PackId>String</PackId>
<PayBasis>String</PayBasis>
<SortOrder>0</SortOrder>
<TicketSource>String</TicketSource>
</DispatchPackView>
</Packs>
<Rigs>
<DispatchRigView>
<Code>String</Code>
<DriverName>String</DriverName>
<IsFree>false</IsFree>
<MatchRank>0</MatchRank>
<Name>String</Name>
<Phone>String</Phone>
<RigId>0</RigId>
<RigType>String</RigType>
</DispatchRigView>
</Rigs>
<Slots>
<DispatchSlotView>
<BaseBooked>0</BaseBooked>
<Hour>String</Hour>
<SlotId>0</SlotId>
<SortOrder>0</SortOrder>
</DispatchSlotView>
</Slots>
<Suppliers>
<DispatchSupplierView>
<Code>String</Code>
<Delivered>0</Delivered>
<Name>String</Name>
<OwnHauler>false</OwnHauler>
<Region>String</Region>
<SeasonAllotment>0</SeasonAllotment>
<Sites>
<DispatchSiteView>
<Acres>0</Acres>
<Name>String</Name>
<SiteId>0</SiteId>
<SortOrder>0</SortOrder>
<StandingVolume>0</StandingVolume>
<SupplierCode>String</SupplierCode>
<SupplierId>0</SupplierId>
</DispatchSiteView>
</Sites>
<SortOrder>0</SortOrder>
<SupplierId>0</SupplierId>
<WeekCap>0</WeekCap>
<WeekDelivered>0</WeekDelivered>
</DispatchSupplierView>
</Suppliers>
<Tickets>
<DispatchTicketView>
<Code>String</Code>
<MinsAgo>0</MinsAgo>
<NetQty>0</NetQty>
<Source>String</Source>
<SupplierCode>String</SupplierCode>
<TicketId>0</TicketId>
<TicketedAt>0001-01-01T00:00:00</TicketedAt>
<TicketedMin>0</TicketedMin>
<TruckCode>String</TruckCode>
</DispatchTicketView>
</Tickets>
<Trucks>
<DispatchTruckView>
<Code>String</Code>
<CycleMins>String</CycleMins>
<CycleMinsAgo>0</CycleMinsAgo>
<CycleStart>0</CycleStart>
<DriverName>String</DriverName>
<EmployerCode>String</EmployerCode>
<EstLoad>0</EstLoad>
<IsInteractive>false</IsInteractive>
<LastPingMins>0</LastPingMins>
<LoadsToday>0</LoadsToday>
<NetToday>0</NetToday>
<NextSiteName>String</NextSiteName>
<NextSupplierCode>String</NextSupplierCode>
<Phone>String</Phone>
<SiteName>String</SiteName>
<Slot>String</Slot>
<Stage>String</Stage>
<StageMinsAgo>0</StageMinsAgo>
<StageSince>0</StageSince>
<SupplierCode>String</SupplierCode>
<TruckId>0</TruckId>
</DispatchTruckView>
</Trucks>
</Board>
<Failed>0</Failed>
<Message>String</Message>
<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>
<Sent>0</Sent>
<TicketCode>String</TicketCode>
<TicketNet>0</TicketNet>
</DispatchActionResponse>