| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Addenda |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AddendaChange:
change_id: Optional[str] = None
change_type: Optional[str] = None
target_seq: Optional[int] = None
item_number: Optional[str] = None
item_name: Optional[str] = None
field: Optional[str] = None
old_value: Optional[str] = None
new_value: Optional[str] = None
description: Optional[str] = None
status: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AddendaChangeSet:
change_set_id: Optional[str] = None
source_rfp_document_i_d: int = 0
source_file_name: Optional[str] = None
document_type: Optional[str] = None
extracted_at_utc: Optional[datetime.datetime] = None
summary: Optional[str] = None
changes: List[AddendaChange] = field(default_factory=list)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WageClassification:
title: Optional[str] = None
base_rate: Optional[Decimal] = None
fringe_rate: Optional[Decimal] = None
parish_note: Optional[str] = None
source_line: Optional[str] = None
benchmark_fringe_rate: Optional[Decimal] = None
fringe_compare_note: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WageDeterminationResult:
source_rfp_document_i_d: int = 0
source_file_name: Optional[str] = None
wd_number: Optional[str] = None
extracted_at_utc: Optional[datetime.datetime] = None
classifications: List[WageClassification] = field(default_factory=list)
source: Optional[str] = None
is_trustworthy: bool = False
executive_order_floor: Optional[Decimal] = None
published_date: Optional[str] = None
project_parish: Optional[str] = None
warnings: List[str] = field(default_factory=list)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RfpAddendaResponse:
response_status: Optional[ResponseStatus] = None
rfp_document_i_d: int = 0
diffs: List[AddendaChangeSet] = field(default_factory=list)
wage_determinations: List[WageDeterminationResult] = field(default_factory=list)
message: Optional[str] = None
reflowed: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RfpAddendaListRequest:
rfp_document_u_i_d: Optional[str] = None
Python RfpAddendaListRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Rfp/{RfpDocumentUID}/Addenda HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
RfpDocumentID: 0,
Diffs:
[
{
ChangeSetId: String,
SourceRfpDocumentID: 0,
SourceFileName: String,
DocumentType: String,
ExtractedAtUtc: 0001-01-01,
Summary: String,
Changes:
[
{
ChangeId: String,
ChangeType: String,
TargetSeq: 0,
ItemNumber: String,
ItemName: String,
Field: String,
OldValue: String,
NewValue: String,
Description: String,
Status: String
}
]
}
],
WageDeterminations:
[
{
SourceRfpDocumentID: 0,
SourceFileName: String,
WdNumber: String,
ExtractedAtUtc: 0001-01-01,
Classifications:
[
{
Title: String,
BaseRate: 0,
FringeRate: 0,
ParishNote: String,
SourceLine: String,
BenchmarkFringeRate: 0,
FringeCompareNote: String
}
],
Source: String,
IsTrustworthy: False,
ExecutiveOrderFloor: 0,
PublishedDate: String,
ProjectParish: String,
Warnings:
[
String
]
}
],
Message: String,
Reflowed: False
}