<?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 SaveKiVorschlagEreignisResponse implements JsonSerializable
{
public function __construct(
/** @var bool|null */
public ?bool $Status=null,
/** @var int */
public int $EreignisId=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['EreignisId'])) $this->EreignisId = $o['EreignisId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->EreignisId)) $o['EreignisId'] = $this->EreignisId;
return empty($o) ? new class(){} : $o;
}
}
class SaveKiVorschlagEreignisRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Lizenz=null,
/** @var string|null */
public ?string $EreignisTyp=null,
/** @var string|null */
public ?string $MandantDatenbank=null,
/** @var int */
public int $AbrechnungsinformationId=0,
/** @var int|null */
public ?int $AnzahlVorschlaege=null,
/** @var string|null */
public ?string $VorschlagJson=null,
/** @var string|null */
public ?string $JournalJson=null,
/** @var string|null */
public ?string $FehlerklasseId=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Lizenz'])) $this->Lizenz = $o['Lizenz'];
if (isset($o['EreignisTyp'])) $this->EreignisTyp = $o['EreignisTyp'];
if (isset($o['MandantDatenbank'])) $this->MandantDatenbank = $o['MandantDatenbank'];
if (isset($o['AbrechnungsinformationId'])) $this->AbrechnungsinformationId = $o['AbrechnungsinformationId'];
if (isset($o['AnzahlVorschlaege'])) $this->AnzahlVorschlaege = $o['AnzahlVorschlaege'];
if (isset($o['VorschlagJson'])) $this->VorschlagJson = $o['VorschlagJson'];
if (isset($o['JournalJson'])) $this->JournalJson = $o['JournalJson'];
if (isset($o['FehlerklasseId'])) $this->FehlerklasseId = $o['FehlerklasseId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Lizenz)) $o['Lizenz'] = $this->Lizenz;
if (isset($this->EreignisTyp)) $o['EreignisTyp'] = $this->EreignisTyp;
if (isset($this->MandantDatenbank)) $o['MandantDatenbank'] = $this->MandantDatenbank;
if (isset($this->AbrechnungsinformationId)) $o['AbrechnungsinformationId'] = $this->AbrechnungsinformationId;
if (isset($this->AnzahlVorschlaege)) $o['AnzahlVorschlaege'] = $this->AnzahlVorschlaege;
if (isset($this->VorschlagJson)) $o['VorschlagJson'] = $this->VorschlagJson;
if (isset($this->JournalJson)) $o['JournalJson'] = $this->JournalJson;
if (isset($this->FehlerklasseId)) $o['FehlerklasseId'] = $this->FehlerklasseId;
return empty($o) ? new class(){} : $o;
}
}
PHP SaveKiVorschlagEreignisRequest 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.
POST /xml/reply/SaveKiVorschlagEreignisRequest HTTP/1.1
Host: 52.142.207.43
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ecUpdaterLicenseCommModel.SaveKiVorschlagEreignisRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
<AbrechnungsinformationId>0</AbrechnungsinformationId>
<AnzahlVorschlaege>0</AnzahlVorschlaege>
<EreignisTyp>String</EreignisTyp>
<FehlerklasseId>String</FehlerklasseId>
<JournalJson>String</JournalJson>
<Lizenz>String</Lizenz>
<MandantDatenbank>String</MandantDatenbank>
<VorschlagJson>String</VorschlagJson>
</ecUpdaterLicenseCommModel.SaveKiVorschlagEreignisRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ecUpdaterLicenseCommModel.SaveKiVorschlagEreignisResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser"> <EreignisId>0</EreignisId> <Status>false</Status> </ecUpdaterLicenseCommModel.SaveKiVorschlagEreignisResponse>