Trendsic Platform Service

<back to all web services

UpdateQuoteRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/quote
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 QuoteItem() = 
        member val QuoteItemID:Int32 = new Int32() with get,set
        member val QuoteID:Int32 = new Int32() with get,set
        member val ItemType:String = null with get,set
        member val SourceRefId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val JobID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Name:String = null with get,set
        member val Description:String = null with get,set
        member val Quantity:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val UnitPrice:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val IsTaxable:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val DisplayOrder:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val IsDeleted:Nullable<Boolean> = new Nullable<Boolean>() with get,set

    [<AllowNullLiteral>]
    type Quote() = 
        member val QuoteID:Int32 = new Int32() with get,set
        member val QuoteUID:Guid = new Guid() with get,set
        member val TenantId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val BranchId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val ProjectID:Int32 = new Int32() with get,set
        member val ProjectUID:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val ProjectName:String = null with get,set
        member val Name:String = null with get,set
        member val Status:String = null with get,set
        member val Total:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val Notes:String = null with get,set
        member val Currency:String = null with get,set
        member val FromName:String = null with get,set
        member val FromPhone:String = null with get,set
        member val FromEmail:String = null with get,set
        member val FromAddress:String = null with get,set
        member val ToName:String = null with get,set
        member val ToPhone:String = null with get,set
        member val ToEmail:String = null with get,set
        member val ToAddress:String = null with get,set
        member val ExpiresAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val IsLocked:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val FinalPriceAfterCompletion:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val ApprovedByName:String = null with get,set
        member val ApprovedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val DeclinedByName:String = null with get,set
        member val DeclinedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val DeclineReason:String = null with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedBy:String = null with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Items:ResizeArray<QuoteItem> = new ResizeArray<QuoteItem>() with get,set

    [<AllowNullLiteral>]
    type QuoteResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Quote:Quote = null with get,set

    [<AllowNullLiteral>]
    type UpdateQuoteRequest() = 
        member val Quote:Quote = null with get,set

F# UpdateQuoteRequest DTOs

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

HTTP + CSV

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

PUT /v1/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Quote":{"QuoteID":0,"QuoteUID":"00000000000000000000000000000000","TenantId":"00000000000000000000000000000000","BranchId":"00000000000000000000000000000000","ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","Name":"String","Status":"String","Total":0,"Notes":"String","Currency":"String","FromName":"String","FromPhone":"String","FromEmail":"String","FromAddress":"String","ToName":"String","ToPhone":"String","ToEmail":"String","ToAddress":"String","ExpiresAt":"0001-01-01T00:00:00.0000000","IsLocked":false,"FinalPriceAfterCompletion":false,"ApprovedByName":"String","ApprovedAt":"0001-01-01T00:00:00.0000000","DeclinedByName":"String","DeclinedAt":"0001-01-01T00:00:00.0000000","DeclineReason":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Items":[{"QuoteItemID":0,"QuoteID":0,"ItemType":"String","SourceRefId":0,"JobID":0,"Name":"String","Description":"String","Quantity":0,"UnitPrice":0,"IsTaxable":false,"DisplayOrder":0,"IsDeleted":false}]}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Quote":{"QuoteID":0,"QuoteUID":"00000000000000000000000000000000","TenantId":"00000000000000000000000000000000","BranchId":"00000000000000000000000000000000","ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","Name":"String","Status":"String","Total":0,"Notes":"String","Currency":"String","FromName":"String","FromPhone":"String","FromEmail":"String","FromAddress":"String","ToName":"String","ToPhone":"String","ToEmail":"String","ToAddress":"String","ExpiresAt":"0001-01-01T00:00:00.0000000","IsLocked":false,"FinalPriceAfterCompletion":false,"ApprovedByName":"String","ApprovedAt":"0001-01-01T00:00:00.0000000","DeclinedByName":"String","DeclinedAt":"0001-01-01T00:00:00.0000000","DeclineReason":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Items":[{"QuoteItemID":0,"QuoteID":0,"ItemType":"String","SourceRefId":0,"JobID":0,"Name":"String","Description":"String","Quantity":0,"UnitPrice":0,"IsTaxable":false,"DisplayOrder":0,"IsDeleted":false}]}}