FrameAppWS

<back to all web services

usuaPermisoRQ

Requires Authentication
The following routes are available for this service:
All Verbs/restfiles/GetPermissionRQ
<?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 usuaPermisoRS implements JsonSerializable
{
    public function __construct(
        /** @var float */
        public float $carp_carp=0.0,
        /** @var bool|null */
        public ?bool $carp_delete=null,
        /** @var bool|null */
        public ?bool $carp_upload=null,
        /** @var bool|null */
        public ?bool $carp_share=null,
        /** @var bool|null */
        public ?bool $cap_download=null,
        /** @var string|null */
        public ?string $error=null
    ) {
    }

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

class usuaPermisoRQ implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $usua_login=null,
        /** @var int */
        public int $sist_sist=0,
        /** @var int */
        public int $empr_empr=0,
        /** @var float */
        public float $carp_carp=0.0
    ) {
    }

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

PHP usuaPermisoRQ DTOs

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

HTTP + OTHER

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

POST /restfiles/GetPermissionRQ HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"usua_login":"String","sist_sist":0,"empr_empr":0,"carp_carp":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"carp_carp":0,"carp_delete":false,"carp_upload":false,"carp_share":false,"cap_download":false,"error":"String"}