Trendsic Platform Service

<back to all web services

CheckinTimelineRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/customercheckins/{Id}/timeline
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type SvcVisitRow() = 
        member val CheckinId:Guid = new Guid() with get,set
        member val TicketLabel:String = null with get,set
        member val LocalDate:DateTime = new DateTime() with get,set
        member val LineId:Guid = new Guid() with get,set
        member val ServiceName:String = null with get,set
        member val StationId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val StationName:String = null with get,set
        member val EmployeeId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val EmployeeName:String = null with get,set
        member val CustomerName:String = null with get,set
        member val ContactId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val ContactAgentId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val CustomerId:Guid = new Guid() with get,set
        member val IsAppointment:Boolean = new Boolean() with get,set
        member val LocalHere:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LocalCalled:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LocalStart:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LocalEnd:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val WaitSec:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val ServeSec:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Outcome:String = null with get,set
        member val Fee:Nullable<Decimal> = new Nullable<Decimal>() with get,set

    [<AllowNullLiteral>]
    type SvcTimelineStep() = 
        member val AtUtc:DateTime = new DateTime() with get,set
        member val LocalAt:DateTime = new DateTime() with get,set
        member val Kind:String = null with get,set
        member val StationName:String = null with get,set
        member val EmployeeName:String = null with get,set

    [<AllowNullLiteral>]
    type SvcTimeline() = 
        member val Visit:SvcVisitRow = null with get,set
        member val Steps:ResizeArray<SvcTimelineStep> = new ResizeArray<SvcTimelineStep>() with get,set
        member val WalkUpSec:Nullable<Int32> = new Nullable<Int32>() with get,set

    [<AllowNullLiteral>]
    type CheckinTimelineResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Timeline:SvcTimeline = null with get,set

    [<AllowNullLiteral>]
    type CheckinTimelineRequest() = 
        member val Id:Guid = new Guid() with get,set

F# CheckinTimelineRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/customercheckins/{Id}/timeline HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Timeline":{"Visit":{"CheckinId":"00000000000000000000000000000000","TicketLabel":"String","LocalDate":"0001-01-01T00:00:00.0000000","LineId":"00000000000000000000000000000000","ServiceName":"String","StationId":"00000000000000000000000000000000","StationName":"String","EmployeeId":"00000000000000000000000000000000","EmployeeName":"String","CustomerName":"String","ContactId":0,"ContactAgentId":0,"CustomerId":"00000000000000000000000000000000","IsAppointment":false,"LocalHere":"0001-01-01T00:00:00.0000000","LocalCalled":"0001-01-01T00:00:00.0000000","LocalStart":"0001-01-01T00:00:00.0000000","LocalEnd":"0001-01-01T00:00:00.0000000","WaitSec":0,"ServeSec":0,"Outcome":"String","Fee":0},"Steps":[{"AtUtc":"0001-01-01T00:00:00.0000000","LocalAt":"0001-01-01T00:00:00.0000000","Kind":"String","StationName":"String","EmployeeName":"String"}],"WalkUpSec":0}}