| GET | /v1/BackOrder/GetBulkStatusAllocationAudits | Gets a list of Bulk Status Allocation Audits. | This endpoint calls Agency API and returns a list Back Order Bulk Status Allocation audits. |
|---|
<?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 BackOrderBulkStatusAllocationAudit implements JsonSerializable
{
public function __construct(
/** @var string */
public string $GasId='',
/** @var string */
public string $Filename='',
/** @var int */
public int $TotalRecords=0,
/** @var string */
public string $DateProcessed='',
/** @var string */
public string $Status=''
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['GasId'])) $this->GasId = $o['GasId'];
if (isset($o['Filename'])) $this->Filename = $o['Filename'];
if (isset($o['TotalRecords'])) $this->TotalRecords = $o['TotalRecords'];
if (isset($o['DateProcessed'])) $this->DateProcessed = $o['DateProcessed'];
if (isset($o['Status'])) $this->Status = $o['Status'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->GasId)) $o['GasId'] = $this->GasId;
if (isset($this->Filename)) $o['Filename'] = $this->Filename;
if (isset($this->TotalRecords)) $o['TotalRecords'] = $this->TotalRecords;
if (isset($this->DateProcessed)) $o['DateProcessed'] = $this->DateProcessed;
if (isset($this->Status)) $o['Status'] = $this->Status;
return empty($o) ? new class(){} : $o;
}
}
class GetBackOrderBulkStatusAllocationAuditsResponse implements JsonSerializable
{
public function __construct(
/** @var array<BackOrderBulkStatusAllocationAudit>|null */
public ?array $BackOrderBulkStatusAllocationAudits=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['BackOrderBulkStatusAllocationAudits'])) $this->BackOrderBulkStatusAllocationAudits = JsonConverters::fromArray('BackOrderBulkStatusAllocationAudit', $o['BackOrderBulkStatusAllocationAudits']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->BackOrderBulkStatusAllocationAudits)) $o['BackOrderBulkStatusAllocationAudits'] = JsonConverters::toArray('BackOrderBulkStatusAllocationAudit', $this->BackOrderBulkStatusAllocationAudits);
return empty($o) ? new class(){} : $o;
}
}
class GetBackOrderBulkStatusAllocationAuditsRequest implements JsonSerializable
{
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
return empty($o) ? new class(){} : $o;
}
}
PHP GetBackOrderBulkStatusAllocationAuditsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/BackOrder/GetBulkStatusAllocationAudits HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"BackOrderBulkStatusAllocationAudits":[{"GasId":"String","Filename":"String","TotalRecords":0,"DateProcessed":"String","Status":"String"}]}