DigiOffice Gateway Web Services

<back to all web services

AddDocumentQueuedForRegistrationWithDocumentInfo

Requires Authentication
<?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 DocumentQueuedForRegistrationResponse implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $DocumentQueuedForRegistrationID=0
    ) {
    }

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

class AddDocumentQueuedForRegistrationWithDocumentInfo implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $FileID=null,
        /** @var string|null */
        public ?string $Description=null,
        /** @var string|null */
        public ?string $Note=null,
        /** @var string|null */
        public ?string $UploadOrigin=null,
        /** @var int|null */
        public ?int $AssignToUserID=null,
        /** @var int|null */
        public ?int $AssignToGroupID=null,
        /** @var string|null */
        public ?string $DocumentInfo=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['FileID'])) $this->FileID = $o['FileID'];
        if (isset($o['Description'])) $this->Description = $o['Description'];
        if (isset($o['Note'])) $this->Note = $o['Note'];
        if (isset($o['UploadOrigin'])) $this->UploadOrigin = $o['UploadOrigin'];
        if (isset($o['AssignToUserID'])) $this->AssignToUserID = $o['AssignToUserID'];
        if (isset($o['AssignToGroupID'])) $this->AssignToGroupID = $o['AssignToGroupID'];
        if (isset($o['DocumentInfo'])) $this->DocumentInfo = $o['DocumentInfo'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->FileID)) $o['FileID'] = $this->FileID;
        if (isset($this->Description)) $o['Description'] = $this->Description;
        if (isset($this->Note)) $o['Note'] = $this->Note;
        if (isset($this->UploadOrigin)) $o['UploadOrigin'] = $this->UploadOrigin;
        if (isset($this->AssignToUserID)) $o['AssignToUserID'] = $this->AssignToUserID;
        if (isset($this->AssignToGroupID)) $o['AssignToGroupID'] = $this->AssignToGroupID;
        if (isset($this->DocumentInfo)) $o['DocumentInfo'] = $this->DocumentInfo;
        return empty($o) ? new class(){} : $o;
    }
}

PHP AddDocumentQueuedForRegistrationWithDocumentInfo 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.

POST /json/reply/AddDocumentQueuedForRegistrationWithDocumentInfo HTTP/1.1 
Host: test-dogw.klokgroep.nl 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"FileID":"00000000-0000-0000-0000-000000000000","Description":"String","Note":"String","UploadOrigin":"String","AssignToUserID":0,"AssignToGroupID":0,"DocumentInfo":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"DocumentQueuedForRegistrationID":0}