Mercedes.Agency.Orchestration.API

<back to all web services

UnlinkedBackOrderCommAudit

Requires Authentication
The following routes are available for this service:
GET/v1/BackOrderUnlinkedCommsGet the audit for back orders unlinked comms
<?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 UnlinkedBackOrderCommAudit implements JsonSerializable
{
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        return empty($o) ? new class(){} : $o;
    }
}

class BackOrderUnlinkedCommsAudit implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $BackOrderReference='',
        /** @var string */
        public string $UserId='',
        /** @var string */
        public string $Showroom='',
        /** @var string */
        public string $CommUnlinked='',
        /** @var string|null */
        public ?string $Reason=null,
        /** @var string */
        public string $AuditDate=''
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['BackOrderReference'])) $this->BackOrderReference = $o['BackOrderReference'];
        if (isset($o['UserId'])) $this->UserId = $o['UserId'];
        if (isset($o['Showroom'])) $this->Showroom = $o['Showroom'];
        if (isset($o['CommUnlinked'])) $this->CommUnlinked = $o['CommUnlinked'];
        if (isset($o['Reason'])) $this->Reason = $o['Reason'];
        if (isset($o['AuditDate'])) $this->AuditDate = $o['AuditDate'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->BackOrderReference)) $o['BackOrderReference'] = $this->BackOrderReference;
        if (isset($this->UserId)) $o['UserId'] = $this->UserId;
        if (isset($this->Showroom)) $o['Showroom'] = $this->Showroom;
        if (isset($this->CommUnlinked)) $o['CommUnlinked'] = $this->CommUnlinked;
        if (isset($this->Reason)) $o['Reason'] = $this->Reason;
        if (isset($this->AuditDate)) $o['AuditDate'] = $this->AuditDate;
        return empty($o) ? new class(){} : $o;
    }
}

class UnlinkedBackOrderCommAuditResponse implements JsonSerializable
{
    public function __construct(
        /** @var array<BackOrderUnlinkedCommsAudit>|null */
        public ?array $Audits=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Audits'])) $this->Audits = JsonConverters::fromArray('BackOrderUnlinkedCommsAudit', $o['Audits']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Audits)) $o['Audits'] = JsonConverters::toArray('BackOrderUnlinkedCommsAudit', $this->Audits);
        return empty($o) ? new class(){} : $o;
    }
}

PHP UnlinkedBackOrderCommAudit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/BackOrderUnlinkedComms HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Audits":[{"BackOrderReference":"String","UserId":"String","Showroom":"String","CommUnlinked":"String","Reason":"String","AuditDate":"String"}]}