GET | /api/ServiceTicketFullDetails |
---|
<?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};
// @DataContract
class BaseRequest implements JsonSerializable
{
public function __construct(
/** @description This is your AIM API Key provided by Tri-Tech */
// @DataMember
// @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header")
/** @var string */
public string $ApiKey='',
// @DataMember
// @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header")
/** @var string|null */
public ?string $OAuthToken=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ApiKey'])) $this->ApiKey = $o['ApiKey'];
if (isset($o['OAuthToken'])) $this->OAuthToken = $o['OAuthToken'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ApiKey)) $o['ApiKey'] = $this->ApiKey;
if (isset($this->OAuthToken)) $o['OAuthToken'] = $this->OAuthToken;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseSecureRequest extends BaseRequest implements JsonSerializable
{
/**
* @param string $ApiKey
* @param string|null $OAuthToken
*/
public function __construct(
string $ApiKey='',
?string $OAuthToken=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header")
/** @var string|null */
public ?string $Token=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header")
/** @var string|null */
public ?string $DeviceId=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header")
/** @var string */
public string $AppId=''
) {
parent::__construct($ApiKey,$OAuthToken);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['Token'])) $this->Token = $o['Token'];
if (isset($o['DeviceId'])) $this->DeviceId = $o['DeviceId'];
if (isset($o['AppId'])) $this->AppId = $o['AppId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->Token)) $o['Token'] = $this->Token;
if (isset($this->DeviceId)) $o['DeviceId'] = $this->DeviceId;
if (isset($this->AppId)) $o['AppId'] = $this->AppId;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseResponseResult implements JsonSerializable
{
public function __construct(
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="StatusCode", ParameterType="body")
/** @var string|null */
public ?string $StatusCode=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="Login", ParameterType="body")
/** @var string|null */
public ?string $Login=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorCode", ParameterType="body")
/** @var string|null */
public ?string $ErrorCode=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorDisplayText", ParameterType="body")
/** @var string|null */
public ?string $ErrorDisplayText=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorMessage", ParameterType="body")
/** @var string|null */
public ?string $ErrorMessage=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="DomainName", ParameterType="body")
/** @var string|null */
public ?string $DomainName=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="IPAddress", ParameterType="body")
/** @var string|null */
public ?string $IpAddress=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['StatusCode'])) $this->StatusCode = $o['StatusCode'];
if (isset($o['Login'])) $this->Login = $o['Login'];
if (isset($o['ErrorCode'])) $this->ErrorCode = $o['ErrorCode'];
if (isset($o['ErrorDisplayText'])) $this->ErrorDisplayText = $o['ErrorDisplayText'];
if (isset($o['ErrorMessage'])) $this->ErrorMessage = $o['ErrorMessage'];
if (isset($o['DomainName'])) $this->DomainName = $o['DomainName'];
if (isset($o['IpAddress'])) $this->IpAddress = $o['IpAddress'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->StatusCode)) $o['StatusCode'] = $this->StatusCode;
if (isset($this->Login)) $o['Login'] = $this->Login;
if (isset($this->ErrorCode)) $o['ErrorCode'] = $this->ErrorCode;
if (isset($this->ErrorDisplayText)) $o['ErrorDisplayText'] = $this->ErrorDisplayText;
if (isset($this->ErrorMessage)) $o['ErrorMessage'] = $this->ErrorMessage;
if (isset($this->DomainName)) $o['DomainName'] = $this->DomainName;
if (isset($this->IpAddress)) $o['IpAddress'] = $this->IpAddress;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseResponse implements JsonSerializable
{
public function __construct(
/** @description */
// @DataMember
// @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")
/** @var BaseResponseResult|null */
public ?BaseResponseResult $Status=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Status'])) $this->Status = JsonConverters::from('BaseResponseResult', $o['Status']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Status)) $o['Status'] = JsonConverters::to('BaseResponseResult', $this->Status);
return empty($o) ? new class(){} : $o;
}
}
class PartInfo implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $Description=null,
// @DataMember
/** @var float */
public float $Quantity=0.0,
// @DataMember
/** @var float */
public float $Price=0.0,
// @DataMember
/** @var float */
public float $Discount=0.0,
// @DataMember
/** @var float */
public float $Total=0.0,
// @DataMember
/** @var string|null */
public ?string $Notes=null,
// @DataMember
/** @var int */
public int $Category=0,
// @DataMember
/** @var string|null */
public ?string $CategoryDescription=null,
// @DataMember
/** @var string|null */
public ?string $Sku=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Description'])) $this->Description = $o['Description'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Price'])) $this->Price = $o['Price'];
if (isset($o['Discount'])) $this->Discount = $o['Discount'];
if (isset($o['Total'])) $this->Total = $o['Total'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['Category'])) $this->Category = $o['Category'];
if (isset($o['CategoryDescription'])) $this->CategoryDescription = $o['CategoryDescription'];
if (isset($o['Sku'])) $this->Sku = $o['Sku'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Description)) $o['Description'] = $this->Description;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Price)) $o['Price'] = $this->Price;
if (isset($this->Discount)) $o['Discount'] = $this->Discount;
if (isset($this->Total)) $o['Total'] = $this->Total;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->Category)) $o['Category'] = $this->Category;
if (isset($this->CategoryDescription)) $o['CategoryDescription'] = $this->CategoryDescription;
if (isset($this->Sku)) $o['Sku'] = $this->Sku;
return empty($o) ? new class(){} : $o;
}
}
class ServiceInfo implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var int */
public int $Id=0,
// @DataMember
/** @var array<PartInfo>|null */
public ?array $Parts=null,
// @DataMember
/** @var string|null */
public ?string $Description=null,
// @DataMember
/** @var float */
public float $Quantity=0.0,
// @DataMember
/** @var float */
public float $Rate=0.0,
// @DataMember
/** @var float */
public float $Discount=0.0,
// @DataMember
/** @var float */
public float $Total=0.0,
// @DataMember
/** @var float */
public float $Time=0.0,
// @DataMember
/** @var bool|null */
public ?bool $Completed=null,
// @DataMember
/** @var DateTime */
public DateTime $CompletedDate=new DateTime(),
// @DataMember
/** @var string|null */
public ?string $Technician=null,
// @DataMember
/** @var string|null */
public ?string $Notes=null,
// @DataMember
/** @var int */
public int $Category=0,
// @DataMember
/** @var string|null */
public ?string $CategoryDescription=null,
// @DataMember
/** @var bool|null */
public ?bool $TimerActive=null,
// @DataMember
/** @var DateTime|null */
public ?DateTime $TimerStartTime=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Id'])) $this->Id = $o['Id'];
if (isset($o['Parts'])) $this->Parts = JsonConverters::fromArray('PartInfo', $o['Parts']);
if (isset($o['Description'])) $this->Description = $o['Description'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Rate'])) $this->Rate = $o['Rate'];
if (isset($o['Discount'])) $this->Discount = $o['Discount'];
if (isset($o['Total'])) $this->Total = $o['Total'];
if (isset($o['Time'])) $this->Time = $o['Time'];
if (isset($o['Completed'])) $this->Completed = $o['Completed'];
if (isset($o['CompletedDate'])) $this->CompletedDate = JsonConverters::from('DateTime', $o['CompletedDate']);
if (isset($o['Technician'])) $this->Technician = $o['Technician'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['Category'])) $this->Category = $o['Category'];
if (isset($o['CategoryDescription'])) $this->CategoryDescription = $o['CategoryDescription'];
if (isset($o['TimerActive'])) $this->TimerActive = $o['TimerActive'];
if (isset($o['TimerStartTime'])) $this->TimerStartTime = JsonConverters::from('DateTime', $o['TimerStartTime']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Id)) $o['Id'] = $this->Id;
if (isset($this->Parts)) $o['Parts'] = JsonConverters::toArray('PartInfo', $this->Parts);
if (isset($this->Description)) $o['Description'] = $this->Description;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Rate)) $o['Rate'] = $this->Rate;
if (isset($this->Discount)) $o['Discount'] = $this->Discount;
if (isset($this->Total)) $o['Total'] = $this->Total;
if (isset($this->Time)) $o['Time'] = $this->Time;
if (isset($this->Completed)) $o['Completed'] = $this->Completed;
if (isset($this->CompletedDate)) $o['CompletedDate'] = JsonConverters::to('DateTime', $this->CompletedDate);
if (isset($this->Technician)) $o['Technician'] = $this->Technician;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->Category)) $o['Category'] = $this->Category;
if (isset($this->CategoryDescription)) $o['CategoryDescription'] = $this->CategoryDescription;
if (isset($this->TimerActive)) $o['TimerActive'] = $this->TimerActive;
if (isset($this->TimerStartTime)) $o['TimerStartTime'] = JsonConverters::to('DateTime', $this->TimerStartTime);
return empty($o) ? new class(){} : $o;
}
}
class DepositInfo implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var float */
public float $OriginalAmount=0.0,
// @DataMember
/** @var float */
public float $Amount=0.0,
// @DataMember
/** @var string|null */
public ?string $RefNumber=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['OriginalAmount'])) $this->OriginalAmount = $o['OriginalAmount'];
if (isset($o['Amount'])) $this->Amount = $o['Amount'];
if (isset($o['RefNumber'])) $this->RefNumber = $o['RefNumber'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->OriginalAmount)) $o['OriginalAmount'] = $this->OriginalAmount;
if (isset($this->Amount)) $o['Amount'] = $this->Amount;
if (isset($this->RefNumber)) $o['RefNumber'] = $this->RefNumber;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class TicketInfo implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var int */
public int $Terms=0,
// @DataMember
/** @var string|null */
public ?string $PoNumber=null,
// @DataMember
/** @var string|null */
public ?string $ReturnAuthorizationNumber=null,
// @DataMember
/** @var string|null */
public ?string $Status=null,
// @DataMember
/** @var float */
public float $ApprovedAmount=0.0,
// @DataMember
/** @var float */
public float $TotalDue=0.0,
// @DataMember
/** @var float */
public float $Subtotal=0.0,
// @DataMember
/** @var float */
public float $Tax1=0.0,
// @DataMember
/** @var float */
public float $Tax2=0.0,
// @DataMember
/** @var DateTime */
public DateTime $ApprovedDate=new DateTime(),
// @DataMember
/** @var DateTime */
public DateTime $BilledDate=new DateTime(),
// @DataMember
/** @var string|null */
public ?string $Contact=null,
// @DataMember
/** @var int */
public int $Category=0,
// @DataMember
/** @var array<ServiceInfo>|null */
public ?array $Services=null,
// @DataMember
/** @var string|null */
public ?string $CategoryDescription=null,
// @DataMember
/** @var int */
public int $SubCategory=0,
// @DataMember
/** @var string|null */
public ?string $SubCategoryDescription=null,
// @DataMember
/** @var string|null */
public ?string $Item=null,
// @DataMember
/** @var string|null */
public ?string $ItemDescription=null,
// @DataMember
/** @var string|null */
public ?string $Manufacturer=null,
// @DataMember
/** @var string|null */
public ?string $Notes=null,
// @DataMember
/** @var DateTime */
public DateTime $Timestamp=new DateTime(),
// @DataMember
/** @var int */
public int $SoldToCustomerAcct=0,
// @DataMember
/** @var int */
public int $BillToCustomerAcct=0,
// @DataMember
/** @var string|null */
public ?string $Model=null,
// @DataMember
/** @var string|null */
public ?string $StLoc=null,
// @DataMember
/** @var string|null */
public ?string $TaxLoc=null,
// @DataMember
/** @var string|null */
public ?string $RefNumber=null,
// @DataMember
/** @var string|null */
public ?string $MasterNumber=null,
// @DataMember
/** @var bool|null */
public ?bool $Invoiced=null,
// @DataMember
/** @var array<DepositInfo>|null */
public ?array $Deposits=null,
// @DataMember
/** @var string|null */
public ?string $SoldToCustomerName=null,
// @DataMember
/** @var string|null */
public ?string $BillToCustomerName=null,
// @DataMember
/** @var string|null */
public ?string $ShipToName=null,
// @DataMember
/** @var int|null */
public ?int $ShipToId=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Terms'])) $this->Terms = $o['Terms'];
if (isset($o['PoNumber'])) $this->PoNumber = $o['PoNumber'];
if (isset($o['ReturnAuthorizationNumber'])) $this->ReturnAuthorizationNumber = $o['ReturnAuthorizationNumber'];
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['ApprovedAmount'])) $this->ApprovedAmount = $o['ApprovedAmount'];
if (isset($o['TotalDue'])) $this->TotalDue = $o['TotalDue'];
if (isset($o['Subtotal'])) $this->Subtotal = $o['Subtotal'];
if (isset($o['Tax1'])) $this->Tax1 = $o['Tax1'];
if (isset($o['Tax2'])) $this->Tax2 = $o['Tax2'];
if (isset($o['ApprovedDate'])) $this->ApprovedDate = JsonConverters::from('DateTime', $o['ApprovedDate']);
if (isset($o['BilledDate'])) $this->BilledDate = JsonConverters::from('DateTime', $o['BilledDate']);
if (isset($o['Contact'])) $this->Contact = $o['Contact'];
if (isset($o['Category'])) $this->Category = $o['Category'];
if (isset($o['Services'])) $this->Services = JsonConverters::fromArray('ServiceInfo', $o['Services']);
if (isset($o['CategoryDescription'])) $this->CategoryDescription = $o['CategoryDescription'];
if (isset($o['SubCategory'])) $this->SubCategory = $o['SubCategory'];
if (isset($o['SubCategoryDescription'])) $this->SubCategoryDescription = $o['SubCategoryDescription'];
if (isset($o['Item'])) $this->Item = $o['Item'];
if (isset($o['ItemDescription'])) $this->ItemDescription = $o['ItemDescription'];
if (isset($o['Manufacturer'])) $this->Manufacturer = $o['Manufacturer'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['Timestamp'])) $this->Timestamp = JsonConverters::from('DateTime', $o['Timestamp']);
if (isset($o['SoldToCustomerAcct'])) $this->SoldToCustomerAcct = $o['SoldToCustomerAcct'];
if (isset($o['BillToCustomerAcct'])) $this->BillToCustomerAcct = $o['BillToCustomerAcct'];
if (isset($o['Model'])) $this->Model = $o['Model'];
if (isset($o['StLoc'])) $this->StLoc = $o['StLoc'];
if (isset($o['TaxLoc'])) $this->TaxLoc = $o['TaxLoc'];
if (isset($o['RefNumber'])) $this->RefNumber = $o['RefNumber'];
if (isset($o['MasterNumber'])) $this->MasterNumber = $o['MasterNumber'];
if (isset($o['Invoiced'])) $this->Invoiced = $o['Invoiced'];
if (isset($o['Deposits'])) $this->Deposits = JsonConverters::fromArray('DepositInfo', $o['Deposits']);
if (isset($o['SoldToCustomerName'])) $this->SoldToCustomerName = $o['SoldToCustomerName'];
if (isset($o['BillToCustomerName'])) $this->BillToCustomerName = $o['BillToCustomerName'];
if (isset($o['ShipToName'])) $this->ShipToName = $o['ShipToName'];
if (isset($o['ShipToId'])) $this->ShipToId = $o['ShipToId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Terms)) $o['Terms'] = $this->Terms;
if (isset($this->PoNumber)) $o['PoNumber'] = $this->PoNumber;
if (isset($this->ReturnAuthorizationNumber)) $o['ReturnAuthorizationNumber'] = $this->ReturnAuthorizationNumber;
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->ApprovedAmount)) $o['ApprovedAmount'] = $this->ApprovedAmount;
if (isset($this->TotalDue)) $o['TotalDue'] = $this->TotalDue;
if (isset($this->Subtotal)) $o['Subtotal'] = $this->Subtotal;
if (isset($this->Tax1)) $o['Tax1'] = $this->Tax1;
if (isset($this->Tax2)) $o['Tax2'] = $this->Tax2;
if (isset($this->ApprovedDate)) $o['ApprovedDate'] = JsonConverters::to('DateTime', $this->ApprovedDate);
if (isset($this->BilledDate)) $o['BilledDate'] = JsonConverters::to('DateTime', $this->BilledDate);
if (isset($this->Contact)) $o['Contact'] = $this->Contact;
if (isset($this->Category)) $o['Category'] = $this->Category;
if (isset($this->Services)) $o['Services'] = JsonConverters::toArray('ServiceInfo', $this->Services);
if (isset($this->CategoryDescription)) $o['CategoryDescription'] = $this->CategoryDescription;
if (isset($this->SubCategory)) $o['SubCategory'] = $this->SubCategory;
if (isset($this->SubCategoryDescription)) $o['SubCategoryDescription'] = $this->SubCategoryDescription;
if (isset($this->Item)) $o['Item'] = $this->Item;
if (isset($this->ItemDescription)) $o['ItemDescription'] = $this->ItemDescription;
if (isset($this->Manufacturer)) $o['Manufacturer'] = $this->Manufacturer;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->Timestamp)) $o['Timestamp'] = JsonConverters::to('DateTime', $this->Timestamp);
if (isset($this->SoldToCustomerAcct)) $o['SoldToCustomerAcct'] = $this->SoldToCustomerAcct;
if (isset($this->BillToCustomerAcct)) $o['BillToCustomerAcct'] = $this->BillToCustomerAcct;
if (isset($this->Model)) $o['Model'] = $this->Model;
if (isset($this->StLoc)) $o['StLoc'] = $this->StLoc;
if (isset($this->TaxLoc)) $o['TaxLoc'] = $this->TaxLoc;
if (isset($this->RefNumber)) $o['RefNumber'] = $this->RefNumber;
if (isset($this->MasterNumber)) $o['MasterNumber'] = $this->MasterNumber;
if (isset($this->Invoiced)) $o['Invoiced'] = $this->Invoiced;
if (isset($this->Deposits)) $o['Deposits'] = JsonConverters::toArray('DepositInfo', $this->Deposits);
if (isset($this->SoldToCustomerName)) $o['SoldToCustomerName'] = $this->SoldToCustomerName;
if (isset($this->BillToCustomerName)) $o['BillToCustomerName'] = $this->BillToCustomerName;
if (isset($this->ShipToName)) $o['ShipToName'] = $this->ShipToName;
if (isset($this->ShipToId)) $o['ShipToId'] = $this->ShipToId;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class ServiceTicketFullDetailsResponse extends BaseResponse implements JsonSerializable
{
/**
* @param BaseResponseResult|null $Status
*/
public function __construct(
?BaseResponseResult $Status=null,
// @DataMember
/** @var array<TicketInfo>|null */
public ?array $Tickets=null
) {
parent::__construct($Status);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['Tickets'])) $this->Tickets = JsonConverters::fromArray('TicketInfo', $o['Tickets']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->Tickets)) $o['Tickets'] = JsonConverters::toArray('TicketInfo', $this->Tickets);
return empty($o) ? new class(){} : $o;
}
}
/** @description ServiceTicketFullDetailsRequires active-e Service Tickets Service */
// @DataContract
class ServiceTicketFullDetailsRequest extends BaseSecureRequest implements JsonSerializable
{
/**
* @param string $ApiKey
* @param string|null $OAuthToken
* @param string|null $Token
* @param string|null $DeviceId
* @param string $AppId
*/
public function __construct(
string $ApiKey='',
?string $OAuthToken=null,
?string $Token=null,
?string $DeviceId=null,
string $AppId='',
// @DataMember
/** @var int|null */
public ?int $Acct=null,
// @DataMember
/** @var string|null */
public ?string $RefNumber=null,
// @DataMember
/** @var DateTime|null */
public ?DateTime $ChangedDate=null
) {
parent::__construct($ApiKey,$OAuthToken,$Token,$DeviceId,$AppId);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['Acct'])) $this->Acct = $o['Acct'];
if (isset($o['RefNumber'])) $this->RefNumber = $o['RefNumber'];
if (isset($o['ChangedDate'])) $this->ChangedDate = JsonConverters::from('DateTime', $o['ChangedDate']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->Acct)) $o['Acct'] = $this->Acct;
if (isset($this->RefNumber)) $o['RefNumber'] = $this->RefNumber;
if (isset($this->ChangedDate)) $o['ChangedDate'] = JsonConverters::to('DateTime', $this->ChangedDate);
return empty($o) ? new class(){} : $o;
}
}
PHP ServiceTicketFullDetailsRequest DTOs
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.
GET /api/ServiceTicketFullDetails HTTP/1.1 Host: active-ewebservice.biz Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ServiceTicketFullDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService"> <Status> <DomainName>String</DomainName> <ErrorCode>String</ErrorCode> <ErrorDisplayText>String</ErrorDisplayText> <ErrorMessage>String</ErrorMessage> <IpAddress>String</IpAddress> <Login>String</Login> <StatusCode>String</StatusCode> </Status> <Tickets> <TicketInfo> <ApprovedAmount>0</ApprovedAmount> <ApprovedDate>0001-01-01T00:00:00</ApprovedDate> <BillToCustomerAcct>0</BillToCustomerAcct> <BillToCustomerName>String</BillToCustomerName> <BilledDate>0001-01-01T00:00:00</BilledDate> <Category>0</Category> <CategoryDescription>String</CategoryDescription> <Contact>String</Contact> <Deposits> <DepositInfo> <Amount>0</Amount> <OriginalAmount>0</OriginalAmount> <RefNumber>String</RefNumber> </DepositInfo> </Deposits> <Invoiced>false</Invoiced> <Item>String</Item> <ItemDescription>String</ItemDescription> <Manufacturer>String</Manufacturer> <MasterNumber>String</MasterNumber> <Model>String</Model> <Notes>String</Notes> <PoNumber>String</PoNumber> <RefNumber>String</RefNumber> <ReturnAuthorizationNumber>String</ReturnAuthorizationNumber> <Services> <ServiceInfo> <Category>0</Category> <CategoryDescription>String</CategoryDescription> <Completed>false</Completed> <CompletedDate>0001-01-01T00:00:00</CompletedDate> <Description>String</Description> <Discount>0</Discount> <Id>0</Id> <Notes>String</Notes> <Parts> <PartInfo> <Category>0</Category> <CategoryDescription>String</CategoryDescription> <Description>String</Description> <Discount>0</Discount> <Notes>String</Notes> <Price>0</Price> <Quantity>0</Quantity> <Sku>String</Sku> <Total>0</Total> </PartInfo> </Parts> <Quantity>0</Quantity> <Rate>0</Rate> <Technician>String</Technician> <Time>0</Time> <TimerActive>false</TimerActive> <TimerStartTime>0001-01-01T00:00:00</TimerStartTime> <Total>0</Total> </ServiceInfo> </Services> <ShipToId>0</ShipToId> <ShipToName>String</ShipToName> <SoldToCustomerAcct>0</SoldToCustomerAcct> <SoldToCustomerName>String</SoldToCustomerName> <StLoc>String</StLoc> <Status>String</Status> <SubCategory>0</SubCategory> <SubCategoryDescription>String</SubCategoryDescription> <Subtotal>0</Subtotal> <Tax1>0</Tax1> <Tax2>0</Tax2> <TaxLoc>String</TaxLoc> <Terms>0</Terms> <Timestamp>0001-01-01T00:00:00</Timestamp> <TotalDue>0</TotalDue> </TicketInfo> </Tickets> </ServiceTicketFullDetailsResponse>