WebService

<back to all web services

SaveKiVorschlagEreignisRequest

<?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 .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.

POST /csv/reply/SaveKiVorschlagEreignisRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Lizenz":"String","EreignisTyp":"String","MandantDatenbank":"String","AbrechnungsinformationId":0,"AnzahlVorschlaege":0,"VorschlagJson":"String","JournalJson":"String","FehlerklasseId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Status":false,"EreignisId":0}