Mercedes.VehicleManagement.API

<back to all web services

BulkVehicleReprocessAuditRequest

VehicleReprocess
Requires Authentication
The following routes are available for this service:
GET/v1/vehicle/GetVehicleReprocessHistoryGet Vehicle Reprocessing History
<?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 BulkVehicleReprocessHistory implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $fileName='',
        /** @var string */
        public string $dateStarted='',
        /** @var string */
        public string $dateFinished='',
        /** @var int */
        public int $totalRecords=0,
        /** @var int */
        public int $processedRecords=0,
        /** @var string */
        public string $gasId='',
        /** @var string */
        public string $status=''
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['fileName'])) $this->fileName = $o['fileName'];
        if (isset($o['dateStarted'])) $this->dateStarted = $o['dateStarted'];
        if (isset($o['dateFinished'])) $this->dateFinished = $o['dateFinished'];
        if (isset($o['totalRecords'])) $this->totalRecords = $o['totalRecords'];
        if (isset($o['processedRecords'])) $this->processedRecords = $o['processedRecords'];
        if (isset($o['gasId'])) $this->gasId = $o['gasId'];
        if (isset($o['status'])) $this->status = $o['status'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->fileName)) $o['fileName'] = $this->fileName;
        if (isset($this->dateStarted)) $o['dateStarted'] = $this->dateStarted;
        if (isset($this->dateFinished)) $o['dateFinished'] = $this->dateFinished;
        if (isset($this->totalRecords)) $o['totalRecords'] = $this->totalRecords;
        if (isset($this->processedRecords)) $o['processedRecords'] = $this->processedRecords;
        if (isset($this->gasId)) $o['gasId'] = $this->gasId;
        if (isset($this->status)) $o['status'] = $this->status;
        return empty($o) ? new class(){} : $o;
    }
}

class BulkVehicleReprocessAuditRequest implements IPost, JsonSerializable
{
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        return empty($o) ? new class(){} : $o;
    }
}

PHP BulkVehicleReprocessAuditRequest 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

HTTP + JSON

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

GET /v1/vehicle/GetVehicleReprocessHistory HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"fileName":"String","dateStarted":"String","dateFinished":"String","totalRecords":0,"processedRecords":0,"gasId":"String","status":"String"}