<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class RuleValidationResult implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $RuleCode=null,
/** @var string|null */
public ?string $Message=null,
/** @var string|null */
public ?string $Key=null,
/** @var string|null */
public ?string $Tag=null,
/** @var string|null */
public ?string $ErrorCode=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RuleCode'])) $this->RuleCode = $o['RuleCode'];
if (isset($o['Message'])) $this->Message = $o['Message'];
if (isset($o['Key'])) $this->Key = $o['Key'];
if (isset($o['Tag'])) $this->Tag = $o['Tag'];
if (isset($o['ErrorCode'])) $this->ErrorCode = $o['ErrorCode'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RuleCode)) $o['RuleCode'] = $this->RuleCode;
if (isset($this->Message)) $o['Message'] = $this->Message;
if (isset($this->Key)) $o['Key'] = $this->Key;
if (isset($this->Tag)) $o['Tag'] = $this->Tag;
if (isset($this->ErrorCode)) $o['ErrorCode'] = $this->ErrorCode;
return empty($o) ? new class(){} : $o;
}
}
class ValidationErrorList implements JsonSerializable
{
public function __construct(
/** @var array<RuleValidationResult>|null */
public ?array $ValidationErrors=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ValidationErrors'])) $this->ValidationErrors = JsonConverters::fromArray('RuleValidationResult', $o['ValidationErrors']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ValidationErrors)) $o['ValidationErrors'] = JsonConverters::toArray('RuleValidationResult', $this->ValidationErrors);
return empty($o) ? new class(){} : $o;
}
}
class SubscriptionLinkContact implements JsonSerializable
{
public function __construct(
/** @description Guid of the contact object within Eros. */
// @ApiMember(DataType="Guid", Description="Guid of the contact object within Eros.", Name="ContactId", ParameterType="query")
/** @var string */
public string $ContactId='',
/** @description The unique key that represents the contact on the external system. */
// @ApiMember(DataType="string", Description="The unique key that represents the contact on the external system.", IsRequired=true, Name="ContactAlternateKey", ParameterType="query")
/** @var string */
public string $ContactAlternateKey='',
/** @description Guid of the Role List Item object within Eros. */
// @ApiMember(DataType="Guid", Description="Guid of the Role List Item object within Eros.", IsRequired=true, Name="RoleId", ParameterType="query")
/** @var string */
public string $RoleId='',
/** @description The unique key that represents the role type on the external system. Note: Use of this is not currently implemented */
// @ApiMember(DataType="string", Description="The unique key that represents the role type on the external system. Note: Use of this is not currently implemented", Name="RoleAlternateKey", ParameterType="query")
/** @var string|null */
public ?string $RoleAlternateKey=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ContactId'])) $this->ContactId = $o['ContactId'];
if (isset($o['ContactAlternateKey'])) $this->ContactAlternateKey = $o['ContactAlternateKey'];
if (isset($o['RoleId'])) $this->RoleId = $o['RoleId'];
if (isset($o['RoleAlternateKey'])) $this->RoleAlternateKey = $o['RoleAlternateKey'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ContactId)) $o['ContactId'] = $this->ContactId;
if (isset($this->ContactAlternateKey)) $o['ContactAlternateKey'] = $this->ContactAlternateKey;
if (isset($this->RoleId)) $o['RoleId'] = $this->RoleId;
if (isset($this->RoleAlternateKey)) $o['RoleAlternateKey'] = $this->RoleAlternateKey;
return empty($o) ? new class(){} : $o;
}
}
class LocationCoordinatesModel implements JsonSerializable
{
public function __construct(
/** @description The latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface. */
// @ApiMember(DataType="Double?", Description="The latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.", IsRequired=true, Name="Latitude", ParameterType="query")
/** @var float */
public float $Latitude=0.0,
/** @description The longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface. */
// @ApiMember(DataType="Double?", Description="The longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.", IsRequired=true, Name="Longitude", ParameterType="query")
/** @var float */
public float $Longitude=0.0,
/** @description The altitude of an address - the altitude above sea level. */
// @ApiMember(DataType="Double?", Description="The altitude of an address - the altitude above sea level.", Name="Altitude", ParameterType="query")
/** @var float|null */
public ?float $Altitude=null,
/** @description Accuracy of the latitude and longitude. */
// @ApiMember(DataType="Double?", Description="Accuracy of the latitude and longitude.", Name="Accuracy", ParameterType="query")
/** @var float|null */
public ?float $Accuracy=null,
/** @description Accurancy of the Altitude. */
// @ApiMember(DataType="Double?", Description="Accurancy of the Altitude.", Name="AltitudeAccuracy", ParameterType="query")
/** @var float|null */
public ?float $AltitudeAccuracy=null,
/** @description Direction you are heading. */
// @ApiMember(DataType="Double?", Description="Direction you are heading.", Name="Heading", ParameterType="query")
/** @var float|null */
public ?float $Heading=null,
/** @description Speed you are going. */
// @ApiMember(DataType="Double?", Description="Speed you are going.", Name="Speed", ParameterType="query")
/** @var float|null */
public ?float $Speed=null,
/** @description Speed your altitude is ascending/descending at. */
// @ApiMember(DataType="Double?", Description="Speed your altitude is ascending/descending at.", Name="VerticalSpeed", ParameterType="query")
/** @var float|null */
public ?float $VerticalSpeed=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Latitude'])) $this->Latitude = $o['Latitude'];
if (isset($o['Longitude'])) $this->Longitude = $o['Longitude'];
if (isset($o['Altitude'])) $this->Altitude = $o['Altitude'];
if (isset($o['Accuracy'])) $this->Accuracy = $o['Accuracy'];
if (isset($o['AltitudeAccuracy'])) $this->AltitudeAccuracy = $o['AltitudeAccuracy'];
if (isset($o['Heading'])) $this->Heading = $o['Heading'];
if (isset($o['Speed'])) $this->Speed = $o['Speed'];
if (isset($o['VerticalSpeed'])) $this->VerticalSpeed = $o['VerticalSpeed'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Latitude)) $o['Latitude'] = $this->Latitude;
if (isset($this->Longitude)) $o['Longitude'] = $this->Longitude;
if (isset($this->Altitude)) $o['Altitude'] = $this->Altitude;
if (isset($this->Accuracy)) $o['Accuracy'] = $this->Accuracy;
if (isset($this->AltitudeAccuracy)) $o['AltitudeAccuracy'] = $this->AltitudeAccuracy;
if (isset($this->Heading)) $o['Heading'] = $this->Heading;
if (isset($this->Speed)) $o['Speed'] = $this->Speed;
if (isset($this->VerticalSpeed)) $o['VerticalSpeed'] = $this->VerticalSpeed;
return empty($o) ? new class(){} : $o;
}
}
class AddressModel implements JsonSerializable
{
public function __construct(
/** @description The distance between this project and another specified set of gps coordinates. */
// @ApiMember(DataType="double", Description="The distance between this project and another specified set of gps coordinates.", Name="DistanceAway", ParameterType="query")
/** @var float */
public float $DistanceAway=0.0,
/** @description The latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface. */
// @ApiMember(DataType="Double?", Description="The latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.", IsRequired=true, Name="Latitude", ParameterType="query")
/** @var float */
public float $Latitude=0.0,
/** @description The longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface. */
// @ApiMember(DataType="Double?", Description="The longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.", IsRequired=true, Name="Longitude", ParameterType="query")
/** @var float */
public float $Longitude=0.0,
/** @description Address Format Id Guid - this will be determined by the service. */
// @ApiMember(DataType="Guid", Description="Address Format Id Guid - this will be determined by the service.", Name="AddressFormatId", ParameterType="query")
/** @var string */
public string $AddressFormatId='',
/** @description Suburb Id Guid - this will attempt to be determined by the SuburbName, StateShortName and Postcode entered. */
// @ApiMember(DataType="Guid", Description="Suburb Id Guid - this will attempt to be determined by the SuburbName, StateShortName and Postcode entered.", Name="SuburbId", ParameterType="query")
/** @var string */
public string $SuburbId='',
/** @description The suburb name. */
// @ApiMember(DataType="string", Description="The suburb name.", Name="SuburbName", ParameterType="query")
/** @var string|null */
public ?string $SuburbName=null,
/** @description The shortened State Name e.g Vic for Victoria. */
// @ApiMember(DataType="string", Description="The shortened State Name e.g Vic for Victoria.", Name="StateShortName", ParameterType="query")
/** @var string|null */
public ?string $StateShortName=null,
/** @description The suburb postcode. */
// @ApiMember(DataType="string", Description="The suburb postcode.", Name="PostCode", ParameterType="query")
/** @var string|null */
public ?string $PostCode=null,
/** @description Country Id Guid - this will be determined by the CountrName or ISOCountryCode entered. */
// @ApiMember(DataType="Guid", Description="Country Id Guid - this will be determined by the CountrName or ISOCountryCode entered.", Name="CountryId", ParameterType="query")
/** @var string */
public string $CountryId='',
/** @description the name of the country the address is within. */
// @ApiMember(DataType="string", Description="the name of the country the address is within.", Name="CountryName", ParameterType="query")
/** @var string|null */
public ?string $CountryName=null,
/** @description A 2 digit ISO Country Code representing the country. */
// @ApiMember(DataType="string", Description="A 2 digit ISO Country Code representing the country.", Name="ISOCountryCode", ParameterType="query")
/** @var string|null */
public ?string $ISOCountryCode=null,
/** @description The address Lot number. */
// @ApiMember(DataType="string", Description="The address Lot number.", Name="LotNumber", ParameterType="query")
/** @var string|null */
public ?string $LotNumber=null,
/** @description The address Sub Unit number. */
// @ApiMember(DataType="string", Description="The address Sub Unit number.", Name="SubUnit", ParameterType="query")
/** @var string|null */
public ?string $SubUnit=null,
/** @description The address building number. */
// @ApiMember(DataType="string", Description="The address building number.", Name="BuildingNumber", ParameterType="query")
/** @var string|null */
public ?string $BuildingNumber=null,
/** @description The address street number. */
// @ApiMember(DataType="string", Description="The address street number.", Name="StreetNumber", ParameterType="query")
/** @var string|null */
public ?string $StreetNumber=null,
/** @description The address street name including street type. */
// @ApiMember(DataType="string", Description="The address street name including street type.", Name="StreetName", ParameterType="query")
/** @var string|null */
public ?string $StreetName=null,
/** @description A formatted address Line 1. */
// @ApiMember(DataType="string", Description="A formatted address Line 1.", Name="AddressLineOne", ParameterType="query")
/** @var string|null */
public ?string $AddressLineOne=null,
/** @description A formatted address Line 2. */
// @ApiMember(DataType="string", Description="A formatted address Line 2.", Name="AddressLineTwo", ParameterType="query")
/** @var string|null */
public ?string $AddressLineTwo=null,
/** @description The full address string. */
// @ApiMember(DataType="string", Description="The full address string.", Name="AddressFull", ParameterType="query")
/** @var string|null */
public ?string $AddressFull=null,
/** @description True if the address is a physical location. */
// @ApiMember(DataType="bool?", Description="True if the address is a physical location.", Name="IsPhysical", ParameterType="query")
/** @var bool|null */
public ?bool $IsPhysical=null,
/** @description Notes about the address. */
// @ApiMember(DataType="string", Description="Notes about the address.", Name="Notes", ParameterType="query")
/** @var string|null */
public ?string $Notes=null,
/** @description If true, the address is eligible for having its coordinates calculated/updated. */
// @ApiMember(DataType="bool?", Description="If true, the address is eligible for having its coordinates calculated/updated.", Name="AutoMapCoordinates", ParameterType="query")
/** @var bool|null */
public ?bool $AutoMapCoordinates=null,
/** @description Location Coordinates for the address. */
// @ApiMember(DataType="LocationCoordinates", Description="Location Coordinates for the address.", Name="LocationCoordinates", ParameterType="query")
/** @var LocationCoordinatesModel|null */
public ?LocationCoordinatesModel $LocationCoordinates=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['DistanceAway'])) $this->DistanceAway = $o['DistanceAway'];
if (isset($o['Latitude'])) $this->Latitude = $o['Latitude'];
if (isset($o['Longitude'])) $this->Longitude = $o['Longitude'];
if (isset($o['AddressFormatId'])) $this->AddressFormatId = $o['AddressFormatId'];
if (isset($o['SuburbId'])) $this->SuburbId = $o['SuburbId'];
if (isset($o['SuburbName'])) $this->SuburbName = $o['SuburbName'];
if (isset($o['StateShortName'])) $this->StateShortName = $o['StateShortName'];
if (isset($o['PostCode'])) $this->PostCode = $o['PostCode'];
if (isset($o['CountryId'])) $this->CountryId = $o['CountryId'];
if (isset($o['CountryName'])) $this->CountryName = $o['CountryName'];
if (isset($o['ISOCountryCode'])) $this->ISOCountryCode = $o['ISOCountryCode'];
if (isset($o['LotNumber'])) $this->LotNumber = $o['LotNumber'];
if (isset($o['SubUnit'])) $this->SubUnit = $o['SubUnit'];
if (isset($o['BuildingNumber'])) $this->BuildingNumber = $o['BuildingNumber'];
if (isset($o['StreetNumber'])) $this->StreetNumber = $o['StreetNumber'];
if (isset($o['StreetName'])) $this->StreetName = $o['StreetName'];
if (isset($o['AddressLineOne'])) $this->AddressLineOne = $o['AddressLineOne'];
if (isset($o['AddressLineTwo'])) $this->AddressLineTwo = $o['AddressLineTwo'];
if (isset($o['AddressFull'])) $this->AddressFull = $o['AddressFull'];
if (isset($o['IsPhysical'])) $this->IsPhysical = $o['IsPhysical'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['AutoMapCoordinates'])) $this->AutoMapCoordinates = $o['AutoMapCoordinates'];
if (isset($o['LocationCoordinates'])) $this->LocationCoordinates = JsonConverters::from('LocationCoordinatesModel', $o['LocationCoordinates']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->DistanceAway)) $o['DistanceAway'] = $this->DistanceAway;
if (isset($this->Latitude)) $o['Latitude'] = $this->Latitude;
if (isset($this->Longitude)) $o['Longitude'] = $this->Longitude;
if (isset($this->AddressFormatId)) $o['AddressFormatId'] = $this->AddressFormatId;
if (isset($this->SuburbId)) $o['SuburbId'] = $this->SuburbId;
if (isset($this->SuburbName)) $o['SuburbName'] = $this->SuburbName;
if (isset($this->StateShortName)) $o['StateShortName'] = $this->StateShortName;
if (isset($this->PostCode)) $o['PostCode'] = $this->PostCode;
if (isset($this->CountryId)) $o['CountryId'] = $this->CountryId;
if (isset($this->CountryName)) $o['CountryName'] = $this->CountryName;
if (isset($this->ISOCountryCode)) $o['ISOCountryCode'] = $this->ISOCountryCode;
if (isset($this->LotNumber)) $o['LotNumber'] = $this->LotNumber;
if (isset($this->SubUnit)) $o['SubUnit'] = $this->SubUnit;
if (isset($this->BuildingNumber)) $o['BuildingNumber'] = $this->BuildingNumber;
if (isset($this->StreetNumber)) $o['StreetNumber'] = $this->StreetNumber;
if (isset($this->StreetName)) $o['StreetName'] = $this->StreetName;
if (isset($this->AddressLineOne)) $o['AddressLineOne'] = $this->AddressLineOne;
if (isset($this->AddressLineTwo)) $o['AddressLineTwo'] = $this->AddressLineTwo;
if (isset($this->AddressFull)) $o['AddressFull'] = $this->AddressFull;
if (isset($this->IsPhysical)) $o['IsPhysical'] = $this->IsPhysical;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->AutoMapCoordinates)) $o['AutoMapCoordinates'] = $this->AutoMapCoordinates;
if (isset($this->LocationCoordinates)) $o['LocationCoordinates'] = JsonConverters::to('LocationCoordinatesModel', $this->LocationCoordinates);
return empty($o) ? new class(){} : $o;
}
}
class SubscriptionObjectModel implements ISubscription, JsonSerializable
{
public function __construct(
/** @description Guid representing the external systems datasource information. */
// @ApiMember(DataType="Guid", Description="Guid representing the external systems datasource information.", IsRequired=true, Name="SuiteDataSourceInstanceId", ParameterType="query")
/** @var string */
public string $SuiteDataSourceInstanceId='',
/** @description The unique key that represents the object on the external system. */
// @ApiMember(DataType="string", Description="The unique key that represents the object on the external system.", IsRequired=true, Name="AlternateKey", ParameterType="query")
/** @var string */
public string $AlternateKey='',
/** @description Guid of the object within Eros. If ObjectId is known, the external system may pass this instead of the alternate key. */
// @ApiMember(DataType="Guid", Description="Guid of the object within Eros. If ObjectId is known, the external system may pass this instead of the alternate key.", Name="ObjectId", ParameterType="query")
/** @var string */
public string $ObjectId='',
/** @description Guid of the RmsTableCtx within Eros. This is used if the alternate key is provided to identify the object to update. */
// @ApiMember(DataType="Guid", Description="Guid of the RmsTableCtx within Eros. This is used if the alternate key is provided to identify the object to update.", Name="RmsTableCtxId", ParameterType="query")
/** @var string */
public string $RmsTableCtxId='',
/** @description Validation ensures that this object has a value in alternateKey or ObjectId, ignoring validation skips this requirement. */
// @ApiMember(DataType="bool", Description="Validation ensures that this object has a value in alternateKey or ObjectId, ignoring validation skips this requirement.", Name="IgnoreValidation", ParameterType="query")
/** @var bool|null */
public ?bool $IgnoreValidation=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['SuiteDataSourceInstanceId'])) $this->SuiteDataSourceInstanceId = $o['SuiteDataSourceInstanceId'];
if (isset($o['AlternateKey'])) $this->AlternateKey = $o['AlternateKey'];
if (isset($o['ObjectId'])) $this->ObjectId = $o['ObjectId'];
if (isset($o['RmsTableCtxId'])) $this->RmsTableCtxId = $o['RmsTableCtxId'];
if (isset($o['IgnoreValidation'])) $this->IgnoreValidation = $o['IgnoreValidation'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->SuiteDataSourceInstanceId)) $o['SuiteDataSourceInstanceId'] = $this->SuiteDataSourceInstanceId;
if (isset($this->AlternateKey)) $o['AlternateKey'] = $this->AlternateKey;
if (isset($this->ObjectId)) $o['ObjectId'] = $this->ObjectId;
if (isset($this->RmsTableCtxId)) $o['RmsTableCtxId'] = $this->RmsTableCtxId;
if (isset($this->IgnoreValidation)) $o['IgnoreValidation'] = $this->IgnoreValidation;
return empty($o) ? new class(){} : $o;
}
}
class DimensionValueModel implements JsonSerializable
{
public function __construct(
/** @var string */
public string $DimensionValueId='',
/** @var string */
public string $DimensionId='',
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $Description=null,
/** @var string|null */
public ?string $ShortName=null,
/** @var string */
public string $TrafficLightId='',
/** @var string|null */
public ?string $TrafficLightColour=null,
/** @var string */
public string $ObjectConnectionId='',
/** @var string */
public string $OwnerContactId='',
/** @var string|null */
public ?string $RecordStatus=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['DimensionValueId'])) $this->DimensionValueId = $o['DimensionValueId'];
if (isset($o['DimensionId'])) $this->DimensionId = $o['DimensionId'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Description'])) $this->Description = $o['Description'];
if (isset($o['ShortName'])) $this->ShortName = $o['ShortName'];
if (isset($o['TrafficLightId'])) $this->TrafficLightId = $o['TrafficLightId'];
if (isset($o['TrafficLightColour'])) $this->TrafficLightColour = $o['TrafficLightColour'];
if (isset($o['ObjectConnectionId'])) $this->ObjectConnectionId = $o['ObjectConnectionId'];
if (isset($o['OwnerContactId'])) $this->OwnerContactId = $o['OwnerContactId'];
if (isset($o['RecordStatus'])) $this->RecordStatus = $o['RecordStatus'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->DimensionValueId)) $o['DimensionValueId'] = $this->DimensionValueId;
if (isset($this->DimensionId)) $o['DimensionId'] = $this->DimensionId;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Description)) $o['Description'] = $this->Description;
if (isset($this->ShortName)) $o['ShortName'] = $this->ShortName;
if (isset($this->TrafficLightId)) $o['TrafficLightId'] = $this->TrafficLightId;
if (isset($this->TrafficLightColour)) $o['TrafficLightColour'] = $this->TrafficLightColour;
if (isset($this->ObjectConnectionId)) $o['ObjectConnectionId'] = $this->ObjectConnectionId;
if (isset($this->OwnerContactId)) $o['OwnerContactId'] = $this->OwnerContactId;
if (isset($this->RecordStatus)) $o['RecordStatus'] = $this->RecordStatus;
return empty($o) ? new class(){} : $o;
}
}
class SubscriptionCommonProjectModel implements JsonSerializable
{
public function __construct(
/** @description A reference number used for identifying the project in the external system. */
// @ApiMember(DataType="string", Description="A reference number used for identifying the project in the external system.", Name="Reference", ParameterType="query")
/** @var string|null */
public ?string $Reference=null,
/** @description A name for the project. */
// @ApiMember(DataType="string", Description="A name for the project.", IsRequired=true, Name="Name", ParameterType="query")
/** @var string */
public string $Name='',
/** @description A description for the project. */
// @ApiMember(DataType="string", Description="A description for the project.", IsRequired=true, Name="Description", ParameterType="query")
/** @var string */
public string $Description='',
/** @description A list of ProjectContact records that link contacts (and their role in the project) to the project. */
// @ApiMember(DataType="List<SubscriptionLinkContact>", Description="A list of ProjectContact records that link contacts (and their role in the project) to the project.", Name="ProjectContacts", ParameterType="query")
/** @var array<SubscriptionLinkContact>|null */
public ?array $ProjectContacts=null,
/** @description An address for the project. */
// @ApiMember(DataType="AddressModel", Description="An address for the project.", Name="ProjectAddress", ParameterType="query")
/** @var AddressModel|null */
public ?AddressModel $ProjectAddress=null,
/** @description A link to the Customer Contact Group. */
// @ApiMember(DataType="SubscriptionObjectModel", Description="A link to the Customer Contact Group.", Name="CustomerContactGroup", ParameterType="query")
/** @var SubscriptionObjectModel|null */
public ?SubscriptionObjectModel $CustomerContactGroup=null,
/** @description Project Group Name. */
// @ApiMember(DataType="string", Description="Project Group Name.", Name="GroupName", ParameterType="query")
/** @var string|null */
public ?string $GroupName=null,
/** @description Stage Name. */
// @ApiMember(DataType="string", Description="Stage Name.", Name="StageName", ParameterType="query")
/** @var string|null */
public ?string $StageName=null,
/** @description Guid of the Media Object representing the projects primary image. */
// @ApiMember(DataType="Guid", Description="Guid of the Media Object representing the projects primary image.", Name="PrimaryProjectImageId", ParameterType="query")
/** @var string */
public string $PrimaryProjectImageId='',
/** @description URL to the projects primary full image. */
// @ApiMember(DataType="string", Description="URL to the projects primary full image.", Name="PrimaryProjectPhotoUrl", ParameterType="query")
/** @var string|null */
public ?string $PrimaryProjectPhotoUrl=null,
/** @description URL to the projects primary thumbnail image. */
// @ApiMember(DataType="string", Description="URL to the projects primary thumbnail image.", Name="PrimaryProjectThumbnailUrl", ParameterType="query")
/** @var string|null */
public ?string $PrimaryProjectThumbnailUrl=null,
/** @description Image height of the projects logo. */
// @ApiMember(DataType="int", Description="Image height of the projects logo.", Name="PrimaryProjectPhotoHeight", ParameterType="query")
/** @var int */
public int $PrimaryProjectPhotoHeight=0,
/** @description Image height of the projects logo. */
// @ApiMember(DataType="int", Description="Image height of the projects logo.", Name="PrimaryProjectPhotoWidth", ParameterType="query")
/** @var int */
public int $PrimaryProjectPhotoWidth=0,
/** @description Dynamically linked content. */
// @ApiMember(DataType="string", Description="Dynamically linked content.", Name="DynamicContent", ParameterType="query")
/** @var string|null */
public ?string $DynamicContent=null,
/** @description If this is 'A' then a documentable ObjectConnection will be created. If this is 'D' then a documentable ObjectConnection will be removed if it exists. Any other value will be ignored. */
// @ApiMember(DataType="char", Description="If this is 'A' then a documentable ObjectConnection will be created. If this is 'D' then a documentable ObjectConnection will be removed if it exists. Any other value will be ignored.", Name="DocumentableObjectConnection", ParameterType="query")
/** @var string */
public string $DocumentableObjectConnection='',
/** @description Dimension values linked to the project. */
// @ApiMember(DataType="List<DimensionValueModel>", Description="Dimension values linked to the project.", Name="DimensionValues", ParameterType="query")
/** @var array<DimensionValueModel>|null */
public ?array $DimensionValues=null,
/** @description Dimension values linked to the project. */
// @ApiMember(DataType="List<Guid>", Description="Dimension values linked to the project.", Name="Calendars", ParameterType="query")
/** @var array<string>|null */
public ?array $Calendars=null,
/** @description The Document Site ID. */
// @ApiMember(DataType="Guid", Description="The Document Site ID.", Name="DocumentSiteId", ParameterType="query")
/** @var string|null */
public ?string $DocumentSiteId=null,
/** @var string */
public string $ObjectSubscriptionId='',
/** @var string|null */
public ?string $ObjectHash=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Reference'])) $this->Reference = $o['Reference'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Description'])) $this->Description = $o['Description'];
if (isset($o['ProjectContacts'])) $this->ProjectContacts = JsonConverters::fromArray('SubscriptionLinkContact', $o['ProjectContacts']);
if (isset($o['ProjectAddress'])) $this->ProjectAddress = JsonConverters::from('AddressModel', $o['ProjectAddress']);
if (isset($o['CustomerContactGroup'])) $this->CustomerContactGroup = JsonConverters::from('SubscriptionObjectModel', $o['CustomerContactGroup']);
if (isset($o['GroupName'])) $this->GroupName = $o['GroupName'];
if (isset($o['StageName'])) $this->StageName = $o['StageName'];
if (isset($o['PrimaryProjectImageId'])) $this->PrimaryProjectImageId = $o['PrimaryProjectImageId'];
if (isset($o['PrimaryProjectPhotoUrl'])) $this->PrimaryProjectPhotoUrl = $o['PrimaryProjectPhotoUrl'];
if (isset($o['PrimaryProjectThumbnailUrl'])) $this->PrimaryProjectThumbnailUrl = $o['PrimaryProjectThumbnailUrl'];
if (isset($o['PrimaryProjectPhotoHeight'])) $this->PrimaryProjectPhotoHeight = $o['PrimaryProjectPhotoHeight'];
if (isset($o['PrimaryProjectPhotoWidth'])) $this->PrimaryProjectPhotoWidth = $o['PrimaryProjectPhotoWidth'];
if (isset($o['DynamicContent'])) $this->DynamicContent = $o['DynamicContent'];
if (isset($o['DocumentableObjectConnection'])) $this->DocumentableObjectConnection = $o['DocumentableObjectConnection'];
if (isset($o['DimensionValues'])) $this->DimensionValues = JsonConverters::fromArray('DimensionValueModel', $o['DimensionValues']);
if (isset($o['Calendars'])) $this->Calendars = JsonConverters::fromArray('Guid', $o['Calendars']);
if (isset($o['DocumentSiteId'])) $this->DocumentSiteId = $o['DocumentSiteId'];
if (isset($o['ObjectSubscriptionId'])) $this->ObjectSubscriptionId = $o['ObjectSubscriptionId'];
if (isset($o['ObjectHash'])) $this->ObjectHash = $o['ObjectHash'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Reference)) $o['Reference'] = $this->Reference;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Description)) $o['Description'] = $this->Description;
if (isset($this->ProjectContacts)) $o['ProjectContacts'] = JsonConverters::toArray('SubscriptionLinkContact', $this->ProjectContacts);
if (isset($this->ProjectAddress)) $o['ProjectAddress'] = JsonConverters::to('AddressModel', $this->ProjectAddress);
if (isset($this->CustomerContactGroup)) $o['CustomerContactGroup'] = JsonConverters::to('SubscriptionObjectModel', $this->CustomerContactGroup);
if (isset($this->GroupName)) $o['GroupName'] = $this->GroupName;
if (isset($this->StageName)) $o['StageName'] = $this->StageName;
if (isset($this->PrimaryProjectImageId)) $o['PrimaryProjectImageId'] = $this->PrimaryProjectImageId;
if (isset($this->PrimaryProjectPhotoUrl)) $o['PrimaryProjectPhotoUrl'] = $this->PrimaryProjectPhotoUrl;
if (isset($this->PrimaryProjectThumbnailUrl)) $o['PrimaryProjectThumbnailUrl'] = $this->PrimaryProjectThumbnailUrl;
if (isset($this->PrimaryProjectPhotoHeight)) $o['PrimaryProjectPhotoHeight'] = $this->PrimaryProjectPhotoHeight;
if (isset($this->PrimaryProjectPhotoWidth)) $o['PrimaryProjectPhotoWidth'] = $this->PrimaryProjectPhotoWidth;
if (isset($this->DynamicContent)) $o['DynamicContent'] = $this->DynamicContent;
if (isset($this->DocumentableObjectConnection)) $o['DocumentableObjectConnection'] = $this->DocumentableObjectConnection;
if (isset($this->DimensionValues)) $o['DimensionValues'] = JsonConverters::toArray('DimensionValueModel', $this->DimensionValues);
if (isset($this->Calendars)) $o['Calendars'] = JsonConverters::toArray('Guid', $this->Calendars);
if (isset($this->DocumentSiteId)) $o['DocumentSiteId'] = $this->DocumentSiteId;
if (isset($this->ObjectSubscriptionId)) $o['ObjectSubscriptionId'] = $this->ObjectSubscriptionId;
if (isset($this->ObjectHash)) $o['ObjectHash'] = $this->ObjectHash;
return empty($o) ? new class(){} : $o;
}
}
/** @description Inserts or Updates a project details and its contact connections and addresses. */
// @Api(Description="Inserts or Updates a project details and its contact connections and addresses.")
class SaveProject extends ValidationErrorList implements ISubscription, JsonSerializable
{
/**
* @param array<RuleValidationResult>|null $ValidationErrors
*/
public function __construct(
?array $ValidationErrors=null,
/** @description Guid representing the external systems datasource information. */
// @ApiMember(DataType="Guid", Description="Guid representing the external systems datasource information.", IsRequired=true, Name="SuiteDataSourceInstanceId")
/** @var string */
public string $SuiteDataSourceInstanceId='',
/** @description The unique key that represents the project on the external system. */
// @ApiMember(DataType="string", Description="The unique key that represents the project on the external system.", IsRequired=true, Name="AlternateKey")
/** @var string */
public string $AlternateKey='',
/** @description Guid of the project object within Eros. If ObjectId is known, the external system may pass this instead of the alternate key. */
// @ApiMember(DataType="Guid", Description="Guid of the project object within Eros. If ObjectId is known, the external system may pass this instead of the alternate key.", Name="ObjectId", ParameterType="query")
/** @var string */
public string $ObjectId='',
/** @description If set to true, the object will be updated/refreshed. If false, the hash representation of the Project model and its data will be compared with the current Project to determine if there are any changes to save. */
// @ApiMember(DataType="bool", Description="If set to true, the object will be updated/refreshed. If false, the hash representation of the Project model and its data will be compared with the current Project to determine if there are any changes to save.", Name="IgnoreHash")
/** @var bool|null */
public ?bool $IgnoreHash=null,
/** @var bool|null */
public ?bool $IgnoreValidation=null,
/** @description Object containing all details of the project to be inserted or updated. */
// @ApiMember(DataType="SubscriptionCommonProjectModel", Description="Object containing all details of the project to be inserted or updated.", IsRequired=true, Name="Project", ParameterType="query")
/** @var SubscriptionCommonProjectModel|null */
public ?SubscriptionCommonProjectModel $Project=null,
/** @var string */
public string $LicenseeId='',
/** @var string */
public string $SessionId=''
) {
parent::__construct($ValidationErrors);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['SuiteDataSourceInstanceId'])) $this->SuiteDataSourceInstanceId = $o['SuiteDataSourceInstanceId'];
if (isset($o['AlternateKey'])) $this->AlternateKey = $o['AlternateKey'];
if (isset($o['ObjectId'])) $this->ObjectId = $o['ObjectId'];
if (isset($o['IgnoreHash'])) $this->IgnoreHash = $o['IgnoreHash'];
if (isset($o['IgnoreValidation'])) $this->IgnoreValidation = $o['IgnoreValidation'];
if (isset($o['Project'])) $this->Project = JsonConverters::from('SubscriptionCommonProjectModel', $o['Project']);
if (isset($o['LicenseeId'])) $this->LicenseeId = $o['LicenseeId'];
if (isset($o['SessionId'])) $this->SessionId = $o['SessionId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->SuiteDataSourceInstanceId)) $o['SuiteDataSourceInstanceId'] = $this->SuiteDataSourceInstanceId;
if (isset($this->AlternateKey)) $o['AlternateKey'] = $this->AlternateKey;
if (isset($this->ObjectId)) $o['ObjectId'] = $this->ObjectId;
if (isset($this->IgnoreHash)) $o['IgnoreHash'] = $this->IgnoreHash;
if (isset($this->IgnoreValidation)) $o['IgnoreValidation'] = $this->IgnoreValidation;
if (isset($this->Project)) $o['Project'] = JsonConverters::to('SubscriptionCommonProjectModel', $this->Project);
if (isset($this->LicenseeId)) $o['LicenseeId'] = $this->LicenseeId;
if (isset($this->SessionId)) $o['SessionId'] = $this->SessionId;
return empty($o) ? new class(){} : $o;
}
}
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 /xml/reply/SaveProject HTTP/1.1
Host: production-eros-platform-apisubscription.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SaveProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModelSubscription">
<_x003C_ValidationErrors_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.Library.ValidationEngine">
<RuleValidationResult>
<_x003C_ErrorCode_x003E_k__BackingField>String</_x003C_ErrorCode_x003E_k__BackingField>
<_x003C_Key_x003E_k__BackingField>String</_x003C_Key_x003E_k__BackingField>
<_x003C_Message_x003E_k__BackingField>String</_x003C_Message_x003E_k__BackingField>
<_x003C_RuleCode_x003E_k__BackingField>String</_x003C_RuleCode_x003E_k__BackingField>
<_x003C_Tag_x003E_k__BackingField>String</_x003C_Tag_x003E_k__BackingField>
</RuleValidationResult>
</_x003C_ValidationErrors_x003E_k__BackingField>
<_x003C_AlternateKey_x003E_k__BackingField>String</_x003C_AlternateKey_x003E_k__BackingField>
<_x003C_IgnoreHash_x003E_k__BackingField>false</_x003C_IgnoreHash_x003E_k__BackingField>
<_x003C_LicenseeId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</_x003C_LicenseeId_x003E_k__BackingField>
<_x003C_ObjectId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</_x003C_ObjectId_x003E_k__BackingField>
<_x003C_Project_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.WebAPI.ServiceModel">
<d2p1:_x003C_Calendars_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>00000000-0000-0000-0000-000000000000</d3p1:guid>
</d2p1:_x003C_Calendars_x003E_k__BackingField>
<d2p1:_x003C_CustomerContactGroup_x003E_k__BackingField>
<d2p1:_x003C_AlternateKey_x003E_k__BackingField>String</d2p1:_x003C_AlternateKey_x003E_k__BackingField>
<d2p1:_x003C_ObjectId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_ObjectId_x003E_k__BackingField>
<d2p1:_x003C_RmsTableCtxId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_RmsTableCtxId_x003E_k__BackingField>
<d2p1:_x003C_SuiteDataSourceInstanceId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_SuiteDataSourceInstanceId_x003E_k__BackingField>
</d2p1:_x003C_CustomerContactGroup_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>String</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_DimensionValues_x003E_k__BackingField xmlns:d3p1="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.WebAPIModel.Models">
<d3p1:DimensionValueModel>
<d3p1:_x003C_Description_x003E_k__BackingField>String</d3p1:_x003C_Description_x003E_k__BackingField>
<d3p1:_x003C_DimensionId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_DimensionId_x003E_k__BackingField>
<d3p1:_x003C_DimensionValueId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_DimensionValueId_x003E_k__BackingField>
<d3p1:_x003C_Name_x003E_k__BackingField>String</d3p1:_x003C_Name_x003E_k__BackingField>
<d3p1:_x003C_ObjectConnectionId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_ObjectConnectionId_x003E_k__BackingField>
<d3p1:_x003C_OwnerContactId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_OwnerContactId_x003E_k__BackingField>
<d3p1:_x003C_RecordStatus_x003E_k__BackingField>String</d3p1:_x003C_RecordStatus_x003E_k__BackingField>
<d3p1:_x003C_ShortName_x003E_k__BackingField>String</d3p1:_x003C_ShortName_x003E_k__BackingField>
<d3p1:_x003C_TrafficLightColour_x003E_k__BackingField>String</d3p1:_x003C_TrafficLightColour_x003E_k__BackingField>
<d3p1:_x003C_TrafficLightId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_TrafficLightId_x003E_k__BackingField>
</d3p1:DimensionValueModel>
</d2p1:_x003C_DimensionValues_x003E_k__BackingField>
<d2p1:_x003C_DocumentSiteId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_DocumentSiteId_x003E_k__BackingField>
<d2p1:_x003C_DocumentableObjectConnection_x003E_k__BackingField>0</d2p1:_x003C_DocumentableObjectConnection_x003E_k__BackingField>
<d2p1:_x003C_DynamicContent_x003E_k__BackingField>String</d2p1:_x003C_DynamicContent_x003E_k__BackingField>
<d2p1:_x003C_GroupName_x003E_k__BackingField>String</d2p1:_x003C_GroupName_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>String</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ObjectHash_x003E_k__BackingField>String</d2p1:_x003C_ObjectHash_x003E_k__BackingField>
<d2p1:_x003C_ObjectSubscriptionId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_ObjectSubscriptionId_x003E_k__BackingField>
<d2p1:_x003C_PrimaryProjectImageId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_PrimaryProjectImageId_x003E_k__BackingField>
<d2p1:_x003C_PrimaryProjectPhotoHeight_x003E_k__BackingField>0</d2p1:_x003C_PrimaryProjectPhotoHeight_x003E_k__BackingField>
<d2p1:_x003C_PrimaryProjectPhotoUrl_x003E_k__BackingField>String</d2p1:_x003C_PrimaryProjectPhotoUrl_x003E_k__BackingField>
<d2p1:_x003C_PrimaryProjectPhotoWidth_x003E_k__BackingField>0</d2p1:_x003C_PrimaryProjectPhotoWidth_x003E_k__BackingField>
<d2p1:_x003C_PrimaryProjectThumbnailUrl_x003E_k__BackingField>String</d2p1:_x003C_PrimaryProjectThumbnailUrl_x003E_k__BackingField>
<d2p1:_x003C_ProjectAddress_x003E_k__BackingField>
<d2p1:_addressFull>String</d2p1:_addressFull>
<d2p1:_x003C_AddressFormatId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_AddressFormatId_x003E_k__BackingField>
<d2p1:_x003C_AddressLineOne_x003E_k__BackingField>String</d2p1:_x003C_AddressLineOne_x003E_k__BackingField>
<d2p1:_x003C_AddressLineTwo_x003E_k__BackingField>String</d2p1:_x003C_AddressLineTwo_x003E_k__BackingField>
<d2p1:_x003C_AutoMapCoordinates_x003E_k__BackingField>false</d2p1:_x003C_AutoMapCoordinates_x003E_k__BackingField>
<d2p1:_x003C_BuildingNumber_x003E_k__BackingField>String</d2p1:_x003C_BuildingNumber_x003E_k__BackingField>
<d2p1:_x003C_CountryId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_CountryId_x003E_k__BackingField>
<d2p1:_x003C_CountryName_x003E_k__BackingField>String</d2p1:_x003C_CountryName_x003E_k__BackingField>
<d2p1:_x003C_DistanceAway_x003E_k__BackingField>0</d2p1:_x003C_DistanceAway_x003E_k__BackingField>
<d2p1:_x003C_ISOCountryCode_x003E_k__BackingField>String</d2p1:_x003C_ISOCountryCode_x003E_k__BackingField>
<d2p1:_x003C_IsPhysical_x003E_k__BackingField>false</d2p1:_x003C_IsPhysical_x003E_k__BackingField>
<d2p1:_x003C_Latitude_x003E_k__BackingField>0</d2p1:_x003C_Latitude_x003E_k__BackingField>
<d2p1:_x003C_LocationCoordinates_x003E_k__BackingField>
<d2p1:_x003C_Accuracy_x003E_k__BackingField>0</d2p1:_x003C_Accuracy_x003E_k__BackingField>
<d2p1:_x003C_AltitudeAccuracy_x003E_k__BackingField>0</d2p1:_x003C_AltitudeAccuracy_x003E_k__BackingField>
<d2p1:_x003C_Altitude_x003E_k__BackingField>0</d2p1:_x003C_Altitude_x003E_k__BackingField>
<d2p1:_x003C_Heading_x003E_k__BackingField>0</d2p1:_x003C_Heading_x003E_k__BackingField>
<d2p1:_x003C_Latitude_x003E_k__BackingField>0</d2p1:_x003C_Latitude_x003E_k__BackingField>
<d2p1:_x003C_Longitude_x003E_k__BackingField>0</d2p1:_x003C_Longitude_x003E_k__BackingField>
<d2p1:_x003C_Speed_x003E_k__BackingField>0</d2p1:_x003C_Speed_x003E_k__BackingField>
<d2p1:_x003C_VerticalSpeed_x003E_k__BackingField>0</d2p1:_x003C_VerticalSpeed_x003E_k__BackingField>
</d2p1:_x003C_LocationCoordinates_x003E_k__BackingField>
<d2p1:_x003C_Longitude_x003E_k__BackingField>0</d2p1:_x003C_Longitude_x003E_k__BackingField>
<d2p1:_x003C_LotNumber_x003E_k__BackingField>String</d2p1:_x003C_LotNumber_x003E_k__BackingField>
<d2p1:_x003C_Notes_x003E_k__BackingField>String</d2p1:_x003C_Notes_x003E_k__BackingField>
<d2p1:_x003C_PostCode_x003E_k__BackingField>String</d2p1:_x003C_PostCode_x003E_k__BackingField>
<d2p1:_x003C_StateShortName_x003E_k__BackingField>String</d2p1:_x003C_StateShortName_x003E_k__BackingField>
<d2p1:_x003C_StreetName_x003E_k__BackingField>String</d2p1:_x003C_StreetName_x003E_k__BackingField>
<d2p1:_x003C_StreetNumber_x003E_k__BackingField>String</d2p1:_x003C_StreetNumber_x003E_k__BackingField>
<d2p1:_x003C_SubUnit_x003E_k__BackingField>String</d2p1:_x003C_SubUnit_x003E_k__BackingField>
<d2p1:_x003C_SuburbId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_SuburbId_x003E_k__BackingField>
<d2p1:_x003C_SuburbName_x003E_k__BackingField>String</d2p1:_x003C_SuburbName_x003E_k__BackingField>
</d2p1:_x003C_ProjectAddress_x003E_k__BackingField>
<d2p1:_x003C_ProjectContacts_x003E_k__BackingField>
<d2p1:SubscriptionLinkContact>
<d2p1:_x003C_ContactAlternateKey_x003E_k__BackingField>String</d2p1:_x003C_ContactAlternateKey_x003E_k__BackingField>
<d2p1:_x003C_ContactId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_ContactId_x003E_k__BackingField>
<d2p1:_x003C_RoleAlternateKey_x003E_k__BackingField>String</d2p1:_x003C_RoleAlternateKey_x003E_k__BackingField>
<d2p1:_x003C_RoleId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d2p1:_x003C_RoleId_x003E_k__BackingField>
</d2p1:SubscriptionLinkContact>
</d2p1:_x003C_ProjectContacts_x003E_k__BackingField>
<d2p1:_x003C_Reference_x003E_k__BackingField>String</d2p1:_x003C_Reference_x003E_k__BackingField>
<d2p1:_x003C_StageName_x003E_k__BackingField>String</d2p1:_x003C_StageName_x003E_k__BackingField>
</_x003C_Project_x003E_k__BackingField>
<_x003C_SessionId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</_x003C_SessionId_x003E_k__BackingField>
<_x003C_SuiteDataSourceInstanceId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</_x003C_SuiteDataSourceInstanceId_x003E_k__BackingField>
</SaveProject>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ResponseStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"> <ErrorCode>String</ErrorCode> <Message>String</Message> <StackTrace>String</StackTrace> <Errors> <ResponseError> <ErrorCode>String</ErrorCode> <FieldName>String</FieldName> <Message>String</Message> <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringstring> <d4p1:Key>String</d4p1:Key> <d4p1:Value>String</d4p1:Value> </d4p1:KeyValueOfstringstring> </Meta> </ResponseError> </Errors> <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>String</d2p1:Key> <d2p1:Value>String</d2p1:Value> </d2p1:KeyValueOfstringstring> </Meta> </ResponseStatus>