| All Verbs | /SetContainerDimension/ |
|---|
<?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 SetContainerDimension implements JsonSerializable
{
public function __construct(
/** @description Container Code */
// @ApiMember(Description="Container Code", IsRequired=true)
/** @var string */
public string $ContainerCode='',
/** @description Dimension X */
// @ApiMember(Description="Dimension X", IsRequired=true)
/** @var string */
public string $DimensionX='',
/** @description Dimension Y */
// @ApiMember(Description="Dimension Y", IsRequired=true)
/** @var string */
public string $DimensionY='',
/** @description Dimension Z */
// @ApiMember(Description="Dimension Z", IsRequired=true)
/** @var string */
public string $DimensionZ=''
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ContainerCode'])) $this->ContainerCode = $o['ContainerCode'];
if (isset($o['DimensionX'])) $this->DimensionX = $o['DimensionX'];
if (isset($o['DimensionY'])) $this->DimensionY = $o['DimensionY'];
if (isset($o['DimensionZ'])) $this->DimensionZ = $o['DimensionZ'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ContainerCode)) $o['ContainerCode'] = $this->ContainerCode;
if (isset($this->DimensionX)) $o['DimensionX'] = $this->DimensionX;
if (isset($this->DimensionY)) $o['DimensionY'] = $this->DimensionY;
if (isset($this->DimensionZ)) $o['DimensionZ'] = $this->DimensionZ;
return empty($o) ? new class(){} : $o;
}
}
PHP SetContainerDimension DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /SetContainerDimension/ HTTP/1.1
Host: clouddemo.pickeos.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ContainerCode: String,
DimensionX: String,
DimensionY: String,
DimensionZ: String
}