| All Verbs | /MissionUpdateDetail/{ID}/{QuantityPrepared} |
|---|
<?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 MissionUpdateDetail implements JsonSerializable
{
public function __construct(
/** @description Label ID */
// @ApiMember(Description="Label ID", IsRequired=true)
/** @var int */
public int $ID=0,
/** @description Quantity the operator prepared */
// @ApiMember(Description="Quantity the operator prepared", IsRequired=true)
/** @var float */
public float $QuantityPrepared=0.0,
/** @description Related batch value */
// @ApiMember(Description="Related batch value")
/** @var string */
public string $Batch='',
/** @description Related target container code */
// @ApiMember(Description="Related target container code")
/** @var string */
public string $ContainerCode='',
/** @description Data1 will be modified with the given value */
// @ApiMember(Description="Data1 will be modified with the given value")
/** @var string */
public string $Data1='',
/** @description Data2 will be modified with the given value */
// @ApiMember(Description="Data2 will be modified with the given value")
/** @var string */
public string $Data2='',
/** @description Data3 will be modified with the given value */
// @ApiMember(Description="Data3 will be modified with the given value")
/** @var string */
public string $Data3='',
/** @description Data4 will be modified with the given value */
// @ApiMember(Description="Data4 will be modified with the given value")
/** @var string */
public string $Data4='',
/** @description Data5 will be modified with the given value */
// @ApiMember(Description="Data5 will be modified with the given value")
/** @var string */
public string $Data5='',
/** @description Data6 will be modified with the given value */
// @ApiMember(Description="Data6 will be modified with the given value")
/** @var string */
public string $Data6='',
/** @description Data7 will be modified with the given value */
// @ApiMember(Description="Data7 will be modified with the given value")
/** @var string */
public string $Data7='',
/** @description Data8 will be modified with the given value */
// @ApiMember(Description="Data8 will be modified with the given value")
/** @var string */
public string $Data8='',
/** @description Data9 will be modified with the given value */
// @ApiMember(Description="Data9 will be modified with the given value")
/** @var string */
public string $Data9='',
/** @description Data10 will be modified with the given value */
// @ApiMember(Description="Data10 will be modified with the given value")
/** @var string */
public string $Data10='',
/** @description Data11 will be modified with the given value */
// @ApiMember(Description="Data11 will be modified with the given value")
/** @var string */
public string $Data11='',
/** @description Stockroom name */
// @ApiMember(Description="Stockroom name")
/** @var string */
public string $StockroomName='',
/** @description Product's version selected */
// @ApiMember(Description="Product's version selected")
/** @var string */
public string $VersionSelected='',
/** @description Owner */
// @ApiMember(Description="Owner")
/** @var string */
public string $Owner='',
/** @description Allow destock qty in db */
// @ApiMember(Description="Allow destock qty in db")
/** @var bool|null */
public ?bool $UpdateStockQty=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ID'])) $this->ID = $o['ID'];
if (isset($o['QuantityPrepared'])) $this->QuantityPrepared = $o['QuantityPrepared'];
if (isset($o['Batch'])) $this->Batch = $o['Batch'];
if (isset($o['ContainerCode'])) $this->ContainerCode = $o['ContainerCode'];
if (isset($o['Data1'])) $this->Data1 = $o['Data1'];
if (isset($o['Data2'])) $this->Data2 = $o['Data2'];
if (isset($o['Data3'])) $this->Data3 = $o['Data3'];
if (isset($o['Data4'])) $this->Data4 = $o['Data4'];
if (isset($o['Data5'])) $this->Data5 = $o['Data5'];
if (isset($o['Data6'])) $this->Data6 = $o['Data6'];
if (isset($o['Data7'])) $this->Data7 = $o['Data7'];
if (isset($o['Data8'])) $this->Data8 = $o['Data8'];
if (isset($o['Data9'])) $this->Data9 = $o['Data9'];
if (isset($o['Data10'])) $this->Data10 = $o['Data10'];
if (isset($o['Data11'])) $this->Data11 = $o['Data11'];
if (isset($o['StockroomName'])) $this->StockroomName = $o['StockroomName'];
if (isset($o['VersionSelected'])) $this->VersionSelected = $o['VersionSelected'];
if (isset($o['Owner'])) $this->Owner = $o['Owner'];
if (isset($o['UpdateStockQty'])) $this->UpdateStockQty = $o['UpdateStockQty'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ID)) $o['ID'] = $this->ID;
if (isset($this->QuantityPrepared)) $o['QuantityPrepared'] = $this->QuantityPrepared;
if (isset($this->Batch)) $o['Batch'] = $this->Batch;
if (isset($this->ContainerCode)) $o['ContainerCode'] = $this->ContainerCode;
if (isset($this->Data1)) $o['Data1'] = $this->Data1;
if (isset($this->Data2)) $o['Data2'] = $this->Data2;
if (isset($this->Data3)) $o['Data3'] = $this->Data3;
if (isset($this->Data4)) $o['Data4'] = $this->Data4;
if (isset($this->Data5)) $o['Data5'] = $this->Data5;
if (isset($this->Data6)) $o['Data6'] = $this->Data6;
if (isset($this->Data7)) $o['Data7'] = $this->Data7;
if (isset($this->Data8)) $o['Data8'] = $this->Data8;
if (isset($this->Data9)) $o['Data9'] = $this->Data9;
if (isset($this->Data10)) $o['Data10'] = $this->Data10;
if (isset($this->Data11)) $o['Data11'] = $this->Data11;
if (isset($this->StockroomName)) $o['StockroomName'] = $this->StockroomName;
if (isset($this->VersionSelected)) $o['VersionSelected'] = $this->VersionSelected;
if (isset($this->Owner)) $o['Owner'] = $this->Owner;
if (isset($this->UpdateStockQty)) $o['UpdateStockQty'] = $this->UpdateStockQty;
return empty($o) ? new class(){} : $o;
}
}
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /MissionUpdateDetail/{ID}/{QuantityPrepared} HTTP/1.1
Host: clouddemo.pickeos.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ID":0,"QuantityPrepared":0,"Batch":"String","ContainerCode":"String","Data1":"String","Data2":"String","Data3":"String","Data4":"String","Data5":"String","Data6":"String","Data7":"String","Data8":"String","Data9":"String","Data10":"String","Data11":"String","StockroomName":"String","VersionSelected":"String","Owner":"String","UpdateStockQty":false}