| GET,OPTIONS | /v1/additionalservice/{Id} |
|---|
"use strict";
export class AdditionalServiceRequestPhoto {
/** @param {{AdditionalServiceRequestPhotoID?:number,Url?:string,MimeType?:string,CreatedAt?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
AdditionalServiceRequestPhotoID;
/** @type {string} */
Url;
/** @type {string} */
MimeType;
/** @type {?string} */
CreatedAt;
}
export class AdditionalServiceRequest {
/** @param {{AdditionalServiceRequestID?:number,AdditionalServiceRequestUID?:string,TenantId?:string,BranchId?:string,BranchName?:string,ProjectID?:number,ProjectName?:string,ProjectUID?:string,JobID?:number,AgreementJobID?:number,RequestedByContactID?:number,RequestedByName?:string,CustomerContactID?:number,CustomerName?:string,CustomerEmail?:string,CustomerPhone?:string,CustomerSmsOptIn?:boolean,Description?:string,Status?:string,QuoteID?:number,QuoteUID?:string,QuoteStatus?:string,QuoteTotal?:number,FinalPriceAfterCompletion?:boolean,QuoteApprovedByName?:string,QuoteApprovedAt?:string,ConvertedJobID?:number,PhotoCount?:number,CreatedBy?:string,CreatedAt?:string,UpdatedBy?:string,UpdatedAt?:string,Photos?:AdditionalServiceRequestPhoto[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
AdditionalServiceRequestID;
/** @type {string} */
AdditionalServiceRequestUID;
/** @type {string} */
TenantId;
/** @type {?string} */
BranchId;
/** @type {string} */
BranchName;
/** @type {number} */
ProjectID;
/** @type {string} */
ProjectName;
/** @type {?string} */
ProjectUID;
/** @type {?number} */
JobID;
/** @type {?number} */
AgreementJobID;
/** @type {?number} */
RequestedByContactID;
/** @type {string} */
RequestedByName;
/** @type {?number} */
CustomerContactID;
/** @type {string} */
CustomerName;
/** @type {string} */
CustomerEmail;
/** @type {string} */
CustomerPhone;
/** @type {boolean} */
CustomerSmsOptIn;
/** @type {string} */
Description;
/** @type {string} */
Status;
/** @type {?number} */
QuoteID;
/** @type {?string} */
QuoteUID;
/** @type {string} */
QuoteStatus;
/** @type {?number} */
QuoteTotal;
/** @type {boolean} */
FinalPriceAfterCompletion;
/** @type {string} */
QuoteApprovedByName;
/** @type {?string} */
QuoteApprovedAt;
/** @type {?number} */
ConvertedJobID;
/** @type {number} */
PhotoCount;
/** @type {string} */
CreatedBy;
/** @type {?string} */
CreatedAt;
/** @type {string} */
UpdatedBy;
/** @type {?string} */
UpdatedAt;
/** @type {AdditionalServiceRequestPhoto[]} */
Photos = [];
}
export class AdditionalServiceDetailResponse {
/** @param {{ResponseStatus?:ResponseStatus,Request?:AdditionalServiceRequest}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {AdditionalServiceRequest} */
Request;
}
export class AdditionalServiceDetailRequest {
/** @param {{Id?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
}
JavaScript AdditionalServiceDetailRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/additionalservice/{Id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
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"}},"Request":{"AdditionalServiceRequestID":0,"AdditionalServiceRequestUID":"00000000000000000000000000000000","TenantId":"00000000000000000000000000000000","BranchId":"00000000000000000000000000000000","BranchName":"String","ProjectID":0,"ProjectName":"String","ProjectUID":"00000000000000000000000000000000","JobID":0,"AgreementJobID":0,"RequestedByContactID":0,"RequestedByName":"String","CustomerContactID":0,"CustomerName":"String","CustomerEmail":"String","CustomerPhone":"String","CustomerSmsOptIn":false,"Description":"String","Status":"String","QuoteID":0,"QuoteUID":"00000000000000000000000000000000","QuoteStatus":"String","QuoteTotal":0,"FinalPriceAfterCompletion":false,"QuoteApprovedByName":"String","QuoteApprovedAt":"0001-01-01T00:00:00.0000000","ConvertedJobID":0,"PhotoCount":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Photos":[{"AdditionalServiceRequestPhotoID":0,"Url":"String","MimeType":"String","CreatedAt":"0001-01-01T00:00:00.0000000"}]}}