GET | /api/GetActiveE3Party |
---|
<?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};
// @DataContract
class BaseRequest implements JsonSerializable
{
public function __construct(
/** @description This is your AIM API Key provided by Tri-Tech */
// @DataMember
// @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header")
/** @var string */
public string $ApiKey='',
// @DataMember
// @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header")
/** @var string|null */
public ?string $OAuthToken=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ApiKey'])) $this->ApiKey = $o['ApiKey'];
if (isset($o['OAuthToken'])) $this->OAuthToken = $o['OAuthToken'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ApiKey)) $o['ApiKey'] = $this->ApiKey;
if (isset($this->OAuthToken)) $o['OAuthToken'] = $this->OAuthToken;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseResponseResult implements JsonSerializable
{
public function __construct(
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="StatusCode", ParameterType="body")
/** @var string|null */
public ?string $StatusCode=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="Login", ParameterType="body")
/** @var string|null */
public ?string $Login=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorCode", ParameterType="body")
/** @var string|null */
public ?string $ErrorCode=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorDisplayText", ParameterType="body")
/** @var string|null */
public ?string $ErrorDisplayText=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorMessage", ParameterType="body")
/** @var string|null */
public ?string $ErrorMessage=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="DomainName", ParameterType="body")
/** @var string|null */
public ?string $DomainName=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="IPAddress", ParameterType="body")
/** @var string|null */
public ?string $IpAddress=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['StatusCode'])) $this->StatusCode = $o['StatusCode'];
if (isset($o['Login'])) $this->Login = $o['Login'];
if (isset($o['ErrorCode'])) $this->ErrorCode = $o['ErrorCode'];
if (isset($o['ErrorDisplayText'])) $this->ErrorDisplayText = $o['ErrorDisplayText'];
if (isset($o['ErrorMessage'])) $this->ErrorMessage = $o['ErrorMessage'];
if (isset($o['DomainName'])) $this->DomainName = $o['DomainName'];
if (isset($o['IpAddress'])) $this->IpAddress = $o['IpAddress'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->StatusCode)) $o['StatusCode'] = $this->StatusCode;
if (isset($this->Login)) $o['Login'] = $this->Login;
if (isset($this->ErrorCode)) $o['ErrorCode'] = $this->ErrorCode;
if (isset($this->ErrorDisplayText)) $o['ErrorDisplayText'] = $this->ErrorDisplayText;
if (isset($this->ErrorMessage)) $o['ErrorMessage'] = $this->ErrorMessage;
if (isset($this->DomainName)) $o['DomainName'] = $this->DomainName;
if (isset($this->IpAddress)) $o['IpAddress'] = $this->IpAddress;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseResponse implements JsonSerializable
{
public function __construct(
/** @description */
// @DataMember
// @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")
/** @var BaseResponseResult|null */
public ?BaseResponseResult $Status=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Status'])) $this->Status = JsonConverters::from('BaseResponseResult', $o['Status']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Status)) $o['Status'] = JsonConverters::to('BaseResponseResult', $this->Status);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class InventoryAttribute implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $Name=null,
// @DataMember
/** @var string|null */
public ?string $Value=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Value'])) $this->Value = $o['Value'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Value)) $o['Value'] = $this->Value;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class SerialItem implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var int */
public int $SasPk=0,
// @DataMember
/** @var string|null */
public ?string $Serial=null,
// @DataMember
/** @var float */
public float $Retail=0.0,
// @DataMember
/** @var float */
public float $OurPrice=0.0,
// @DataMember
/** @var float|null */
public ?float $SalePrice=null,
// @DataMember
/** @var float */
public float $AE_Sale_Price=0.0,
// @DataMember
/** @var string|null */
public ?string $Status=null,
// @DataMember
/** @var string|null */
public ?string $SaleInfo=null,
// @DataMember
/** @var float */
public float $PriceA=0.0,
// @DataMember
/** @var float */
public float $PriceB=0.0,
// @DataMember
/** @var float */
public float $PriceC=0.0,
// @DataMember
/** @var float */
public float $MinPrice=0.0,
// @DataMember
/** @var string|null */
public ?string $Notes=null,
// @DataMember
/** @var string|null */
public ?string $Source=null,
// @DataMember
/** @var array<InventoryAttribute>|null */
public ?array $Attributes=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['SasPk'])) $this->SasPk = $o['SasPk'];
if (isset($o['Serial'])) $this->Serial = $o['Serial'];
if (isset($o['Retail'])) $this->Retail = $o['Retail'];
if (isset($o['OurPrice'])) $this->OurPrice = $o['OurPrice'];
if (isset($o['SalePrice'])) $this->SalePrice = $o['SalePrice'];
if (isset($o['AE_Sale_Price'])) $this->AE_Sale_Price = $o['AE_Sale_Price'];
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['SaleInfo'])) $this->SaleInfo = $o['SaleInfo'];
if (isset($o['PriceA'])) $this->PriceA = $o['PriceA'];
if (isset($o['PriceB'])) $this->PriceB = $o['PriceB'];
if (isset($o['PriceC'])) $this->PriceC = $o['PriceC'];
if (isset($o['MinPrice'])) $this->MinPrice = $o['MinPrice'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['Source'])) $this->Source = $o['Source'];
if (isset($o['Attributes'])) $this->Attributes = JsonConverters::fromArray('InventoryAttribute', $o['Attributes']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->SasPk)) $o['SasPk'] = $this->SasPk;
if (isset($this->Serial)) $o['Serial'] = $this->Serial;
if (isset($this->Retail)) $o['Retail'] = $this->Retail;
if (isset($this->OurPrice)) $o['OurPrice'] = $this->OurPrice;
if (isset($this->SalePrice)) $o['SalePrice'] = $this->SalePrice;
if (isset($this->AE_Sale_Price)) $o['AE_Sale_Price'] = $this->AE_Sale_Price;
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->SaleInfo)) $o['SaleInfo'] = $this->SaleInfo;
if (isset($this->PriceA)) $o['PriceA'] = $this->PriceA;
if (isset($this->PriceB)) $o['PriceB'] = $this->PriceB;
if (isset($this->PriceC)) $o['PriceC'] = $this->PriceC;
if (isset($this->MinPrice)) $o['MinPrice'] = $this->MinPrice;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->Source)) $o['Source'] = $this->Source;
if (isset($this->Attributes)) $o['Attributes'] = JsonConverters::toArray('InventoryAttribute', $this->Attributes);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class QtyByLoc implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $Location=null,
// @DataMember
/** @var float */
public float $Quantity=0.0,
// @DataMember
/** @var string|null */
public ?string $LocatorCode=null,
// @DataMember
/** @var array<SerialItem>|null */
public ?array $SerialItems=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Location'])) $this->Location = $o['Location'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['LocatorCode'])) $this->LocatorCode = $o['LocatorCode'];
if (isset($o['SerialItems'])) $this->SerialItems = JsonConverters::fromArray('SerialItem', $o['SerialItems']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Location)) $o['Location'] = $this->Location;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->LocatorCode)) $o['LocatorCode'] = $this->LocatorCode;
if (isset($this->SerialItems)) $o['SerialItems'] = JsonConverters::toArray('SerialItem', $this->SerialItems);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class ActiveE3Party implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $Model=null,
// @DataMember
/** @var string|null */
public ?string $Sku=null,
// @DataMember
/** @var string|null */
public ?string $WebNumber=null,
// @DataMember
/** @var string|null */
public ?string $Desc=null,
// @DataMember
/** @var string|null */
public ?string $Mfg=null,
// @DataMember
/** @var string|null */
public ?string $Type=null,
// @DataMember
/** @var string|null */
public ?string $Barcode=null,
// @DataMember
/** @var array<string>|null */
public ?array $BarcodeList=null,
// @DataMember
/** @var string|null */
public ?string $Selcode=null,
// @DataMember
/** @var string|null */
public ?string $Color=null,
// @DataMember
/** @var string|null */
public ?string $Size=null,
// @DataMember
/** @var string|null */
public ?string $Web_Cat_1=null,
// @DataMember
/** @var string|null */
public ?string $Web_Cat_2=null,
// @DataMember
/** @var string|null */
public ?string $Web_Cat_3=null,
// @DataMember
/** @var string|null */
public ?string $Web_Cat_4=null,
// @DataMember
/** @var string|null */
public ?string $URL=null,
// @DataMember
/** @var string|null */
public ?string $Image_Small=null,
// @DataMember
/** @var string|null */
public ?string $Image_Medium=null,
// @DataMember
/** @var string|null */
public ?string $Web_Desc=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_cat1=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_cat2=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_storecat1=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_storecat2=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_title=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_subtitle=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_desc=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_template=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_duration=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_format=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_paypreset=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_shippreset=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_shipdest=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image1=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image2=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image3=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image4=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image5=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image6=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image7=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image8=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image9=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image10=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image11=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image12=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image13=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image14=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image15=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image16=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image17=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image18=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image19=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image20=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image21=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image22=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image23=null,
// @DataMember
/** @var string|null */
public ?string $Ebay_image24=null,
// @DataMember
/** @var string|null */
public ?string $ProductCode=null,
// @DataMember
/** @var string|null */
public ?string $Dimension=null,
// @DataMember
/** @var string|null */
public ?string $Restricted_Qtys=null,
// @DataMember
/** @var string|null */
public ?string $Related_Products=null,
// @DataMember
/** @var string|null */
public ?string $Upsell_Products=null,
// @DataMember
/** @var string|null */
public ?string $Requires_Products=null,
// @DataMember
/** @var string|null */
public ?string $Image_Large=null,
// @DataMember
/** @var string|null */
public ?string $Audio_URL=null,
// @DataMember
/** @var string|null */
public ?string $MPN=null,
// @DataMember
/** @var string|null */
public ?string $Composer=null,
// @DataMember
/** @var string|null */
public ?string $Arranger=null,
// @DataMember
/** @var string|null */
public ?string $Artist=null,
// @DataMember
/** @var string|null */
public ?string $Voicing=null,
// @DataMember
/** @var string|null */
public ?string $Level=null,
// @DataMember
/** @var string|null */
public ?string $Sample_URL=null,
// @DataMember
/** @var string|null */
public ?string $TOC=null,
// @DataMember
/** @var string|null */
public ?string $SE_desc=null,
// @DataMember
/** @var string|null */
public ?string $SE_keywords=null,
// @DataMember
/** @var string|null */
public ?string $SE_title=null,
// @DataMember
/** @var string|null */
public ?string $Notes=null,
// @DataMember
/** @var string|null */
public ?string $Invoice_Notes=null,
// @DataMember
/** @var string|null */
public ?string $POS_Reminder=null,
// @DataMember
/** @var array<QtyByLoc>|null */
public ?array $LocationQtys=null,
// @DataMember
/** @var string|null */
public ?string $Location_qtys=null,
// @DataMember
/** @var string|null */
public ?string $WebcatChild1=null,
// @DataMember
/** @var string|null */
public ?string $WebcatChild2=null,
// @DataMember
/** @var string|null */
public ?string $WebcatChild3=null,
// @DataMember
/** @var string|null */
public ?string $WebcatChild4=null,
// @DataMember
/** @var float */
public float $Qty=0.0,
// @DataMember
/** @var float */
public float $Qty_Available=0.0,
// @DataMember
/** @var float */
public float $Cost=0.0,
// @DataMember
/** @var float */
public float $Our_Price=0.0,
// @DataMember
/** @var float */
public float $Retail=0.0,
// @DataMember
/** @var float */
public float $Min_Price=0.0,
// @DataMember
/** @var float */
public float $Price_A=0.0,
// @DataMember
/** @var float */
public float $Price_B=0.0,
// @DataMember
/** @var float */
public float $Price_C=0.0,
// @DataMember
/** @var float */
public float $AE_Sale_Price=0.0,
// @DataMember
/** @var float */
public float $Weight=0.0,
// @DataMember
/** @var float */
public float $Ebay_qty=0.0,
// @DataMember
/** @var float */
public float $Ebay_start=0.0,
// @DataMember
/** @var float */
public float $Ebay_reserve=0.0,
// @DataMember
/** @var float */
public float $Ebay_buyitnow=0.0,
// @DataMember
/** @var float */
public float $WCost=0.0,
// @DataMember
/** @var float */
public float $Margin_Perc=0.0,
// @DataMember
/** @var int */
public int $Ebay_length=0,
// @DataMember
/** @var int */
public int $Ebay_width=0,
// @DataMember
/** @var int */
public int $Ebay_depth=0,
// @DataMember
/** @var int */
public int $Ebay_wtmajor=0,
// @DataMember
/** @var int */
public int $Ebay_wtminor=0,
// @DataMember
/** @var bool|null */
public ?bool $Ebay=null,
// @DataMember
/** @var bool|null */
public ?bool $Web=null,
// @DataMember
/** @var bool|null */
public ?bool $Published=null,
// @DataMember
/** @var bool|null */
public ?bool $Approval=null,
// @DataMember
/** @var bool|null */
public ?bool $Call_To_Order=null,
// @DataMember
/** @var bool|null */
public ?bool $Discontinued=null,
// @DataMember
/** @var bool|null */
public ?bool $SellSerialsOnline=null,
// @DataMember
/** @var DateTime */
public DateTime $LastUpdated=new DateTime(),
// @DataMember
/** @var array<InventoryAttribute>|null */
public ?array $InventoryAttributes=null,
// @DataMember
/** @var int */
public int $ExtPk=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Model'])) $this->Model = $o['Model'];
if (isset($o['Sku'])) $this->Sku = $o['Sku'];
if (isset($o['WebNumber'])) $this->WebNumber = $o['WebNumber'];
if (isset($o['Desc'])) $this->Desc = $o['Desc'];
if (isset($o['Mfg'])) $this->Mfg = $o['Mfg'];
if (isset($o['Type'])) $this->Type = $o['Type'];
if (isset($o['Barcode'])) $this->Barcode = $o['Barcode'];
if (isset($o['BarcodeList'])) $this->BarcodeList = JsonConverters::fromArray('string', $o['BarcodeList']);
if (isset($o['Selcode'])) $this->Selcode = $o['Selcode'];
if (isset($o['Color'])) $this->Color = $o['Color'];
if (isset($o['Size'])) $this->Size = $o['Size'];
if (isset($o['Web_Cat_1'])) $this->Web_Cat_1 = $o['Web_Cat_1'];
if (isset($o['Web_Cat_2'])) $this->Web_Cat_2 = $o['Web_Cat_2'];
if (isset($o['Web_Cat_3'])) $this->Web_Cat_3 = $o['Web_Cat_3'];
if (isset($o['Web_Cat_4'])) $this->Web_Cat_4 = $o['Web_Cat_4'];
if (isset($o['URL'])) $this->URL = $o['URL'];
if (isset($o['Image_Small'])) $this->Image_Small = $o['Image_Small'];
if (isset($o['Image_Medium'])) $this->Image_Medium = $o['Image_Medium'];
if (isset($o['Web_Desc'])) $this->Web_Desc = $o['Web_Desc'];
if (isset($o['Ebay_cat1'])) $this->Ebay_cat1 = $o['Ebay_cat1'];
if (isset($o['Ebay_cat2'])) $this->Ebay_cat2 = $o['Ebay_cat2'];
if (isset($o['Ebay_storecat1'])) $this->Ebay_storecat1 = $o['Ebay_storecat1'];
if (isset($o['Ebay_storecat2'])) $this->Ebay_storecat2 = $o['Ebay_storecat2'];
if (isset($o['Ebay_title'])) $this->Ebay_title = $o['Ebay_title'];
if (isset($o['Ebay_subtitle'])) $this->Ebay_subtitle = $o['Ebay_subtitle'];
if (isset($o['Ebay_desc'])) $this->Ebay_desc = $o['Ebay_desc'];
if (isset($o['Ebay_template'])) $this->Ebay_template = $o['Ebay_template'];
if (isset($o['Ebay_duration'])) $this->Ebay_duration = $o['Ebay_duration'];
if (isset($o['Ebay_format'])) $this->Ebay_format = $o['Ebay_format'];
if (isset($o['Ebay_paypreset'])) $this->Ebay_paypreset = $o['Ebay_paypreset'];
if (isset($o['Ebay_shippreset'])) $this->Ebay_shippreset = $o['Ebay_shippreset'];
if (isset($o['Ebay_shipdest'])) $this->Ebay_shipdest = $o['Ebay_shipdest'];
if (isset($o['Ebay_image1'])) $this->Ebay_image1 = $o['Ebay_image1'];
if (isset($o['Ebay_image2'])) $this->Ebay_image2 = $o['Ebay_image2'];
if (isset($o['Ebay_image3'])) $this->Ebay_image3 = $o['Ebay_image3'];
if (isset($o['Ebay_image4'])) $this->Ebay_image4 = $o['Ebay_image4'];
if (isset($o['Ebay_image5'])) $this->Ebay_image5 = $o['Ebay_image5'];
if (isset($o['Ebay_image6'])) $this->Ebay_image6 = $o['Ebay_image6'];
if (isset($o['Ebay_image7'])) $this->Ebay_image7 = $o['Ebay_image7'];
if (isset($o['Ebay_image8'])) $this->Ebay_image8 = $o['Ebay_image8'];
if (isset($o['Ebay_image9'])) $this->Ebay_image9 = $o['Ebay_image9'];
if (isset($o['Ebay_image10'])) $this->Ebay_image10 = $o['Ebay_image10'];
if (isset($o['Ebay_image11'])) $this->Ebay_image11 = $o['Ebay_image11'];
if (isset($o['Ebay_image12'])) $this->Ebay_image12 = $o['Ebay_image12'];
if (isset($o['Ebay_image13'])) $this->Ebay_image13 = $o['Ebay_image13'];
if (isset($o['Ebay_image14'])) $this->Ebay_image14 = $o['Ebay_image14'];
if (isset($o['Ebay_image15'])) $this->Ebay_image15 = $o['Ebay_image15'];
if (isset($o['Ebay_image16'])) $this->Ebay_image16 = $o['Ebay_image16'];
if (isset($o['Ebay_image17'])) $this->Ebay_image17 = $o['Ebay_image17'];
if (isset($o['Ebay_image18'])) $this->Ebay_image18 = $o['Ebay_image18'];
if (isset($o['Ebay_image19'])) $this->Ebay_image19 = $o['Ebay_image19'];
if (isset($o['Ebay_image20'])) $this->Ebay_image20 = $o['Ebay_image20'];
if (isset($o['Ebay_image21'])) $this->Ebay_image21 = $o['Ebay_image21'];
if (isset($o['Ebay_image22'])) $this->Ebay_image22 = $o['Ebay_image22'];
if (isset($o['Ebay_image23'])) $this->Ebay_image23 = $o['Ebay_image23'];
if (isset($o['Ebay_image24'])) $this->Ebay_image24 = $o['Ebay_image24'];
if (isset($o['ProductCode'])) $this->ProductCode = $o['ProductCode'];
if (isset($o['Dimension'])) $this->Dimension = $o['Dimension'];
if (isset($o['Restricted_Qtys'])) $this->Restricted_Qtys = $o['Restricted_Qtys'];
if (isset($o['Related_Products'])) $this->Related_Products = $o['Related_Products'];
if (isset($o['Upsell_Products'])) $this->Upsell_Products = $o['Upsell_Products'];
if (isset($o['Requires_Products'])) $this->Requires_Products = $o['Requires_Products'];
if (isset($o['Image_Large'])) $this->Image_Large = $o['Image_Large'];
if (isset($o['Audio_URL'])) $this->Audio_URL = $o['Audio_URL'];
if (isset($o['MPN'])) $this->MPN = $o['MPN'];
if (isset($o['Composer'])) $this->Composer = $o['Composer'];
if (isset($o['Arranger'])) $this->Arranger = $o['Arranger'];
if (isset($o['Artist'])) $this->Artist = $o['Artist'];
if (isset($o['Voicing'])) $this->Voicing = $o['Voicing'];
if (isset($o['Level'])) $this->Level = $o['Level'];
if (isset($o['Sample_URL'])) $this->Sample_URL = $o['Sample_URL'];
if (isset($o['TOC'])) $this->TOC = $o['TOC'];
if (isset($o['SE_desc'])) $this->SE_desc = $o['SE_desc'];
if (isset($o['SE_keywords'])) $this->SE_keywords = $o['SE_keywords'];
if (isset($o['SE_title'])) $this->SE_title = $o['SE_title'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['Invoice_Notes'])) $this->Invoice_Notes = $o['Invoice_Notes'];
if (isset($o['POS_Reminder'])) $this->POS_Reminder = $o['POS_Reminder'];
if (isset($o['LocationQtys'])) $this->LocationQtys = JsonConverters::fromArray('QtyByLoc', $o['LocationQtys']);
if (isset($o['Location_qtys'])) $this->Location_qtys = $o['Location_qtys'];
if (isset($o['WebcatChild1'])) $this->WebcatChild1 = $o['WebcatChild1'];
if (isset($o['WebcatChild2'])) $this->WebcatChild2 = $o['WebcatChild2'];
if (isset($o['WebcatChild3'])) $this->WebcatChild3 = $o['WebcatChild3'];
if (isset($o['WebcatChild4'])) $this->WebcatChild4 = $o['WebcatChild4'];
if (isset($o['Qty'])) $this->Qty = $o['Qty'];
if (isset($o['Qty_Available'])) $this->Qty_Available = $o['Qty_Available'];
if (isset($o['Cost'])) $this->Cost = $o['Cost'];
if (isset($o['Our_Price'])) $this->Our_Price = $o['Our_Price'];
if (isset($o['Retail'])) $this->Retail = $o['Retail'];
if (isset($o['Min_Price'])) $this->Min_Price = $o['Min_Price'];
if (isset($o['Price_A'])) $this->Price_A = $o['Price_A'];
if (isset($o['Price_B'])) $this->Price_B = $o['Price_B'];
if (isset($o['Price_C'])) $this->Price_C = $o['Price_C'];
if (isset($o['AE_Sale_Price'])) $this->AE_Sale_Price = $o['AE_Sale_Price'];
if (isset($o['Weight'])) $this->Weight = $o['Weight'];
if (isset($o['Ebay_qty'])) $this->Ebay_qty = $o['Ebay_qty'];
if (isset($o['Ebay_start'])) $this->Ebay_start = $o['Ebay_start'];
if (isset($o['Ebay_reserve'])) $this->Ebay_reserve = $o['Ebay_reserve'];
if (isset($o['Ebay_buyitnow'])) $this->Ebay_buyitnow = $o['Ebay_buyitnow'];
if (isset($o['WCost'])) $this->WCost = $o['WCost'];
if (isset($o['Margin_Perc'])) $this->Margin_Perc = $o['Margin_Perc'];
if (isset($o['Ebay_length'])) $this->Ebay_length = $o['Ebay_length'];
if (isset($o['Ebay_width'])) $this->Ebay_width = $o['Ebay_width'];
if (isset($o['Ebay_depth'])) $this->Ebay_depth = $o['Ebay_depth'];
if (isset($o['Ebay_wtmajor'])) $this->Ebay_wtmajor = $o['Ebay_wtmajor'];
if (isset($o['Ebay_wtminor'])) $this->Ebay_wtminor = $o['Ebay_wtminor'];
if (isset($o['Ebay'])) $this->Ebay = $o['Ebay'];
if (isset($o['Web'])) $this->Web = $o['Web'];
if (isset($o['Published'])) $this->Published = $o['Published'];
if (isset($o['Approval'])) $this->Approval = $o['Approval'];
if (isset($o['Call_To_Order'])) $this->Call_To_Order = $o['Call_To_Order'];
if (isset($o['Discontinued'])) $this->Discontinued = $o['Discontinued'];
if (isset($o['SellSerialsOnline'])) $this->SellSerialsOnline = $o['SellSerialsOnline'];
if (isset($o['LastUpdated'])) $this->LastUpdated = JsonConverters::from('DateTime', $o['LastUpdated']);
if (isset($o['InventoryAttributes'])) $this->InventoryAttributes = JsonConverters::fromArray('InventoryAttribute', $o['InventoryAttributes']);
if (isset($o['ExtPk'])) $this->ExtPk = $o['ExtPk'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Model)) $o['Model'] = $this->Model;
if (isset($this->Sku)) $o['Sku'] = $this->Sku;
if (isset($this->WebNumber)) $o['WebNumber'] = $this->WebNumber;
if (isset($this->Desc)) $o['Desc'] = $this->Desc;
if (isset($this->Mfg)) $o['Mfg'] = $this->Mfg;
if (isset($this->Type)) $o['Type'] = $this->Type;
if (isset($this->Barcode)) $o['Barcode'] = $this->Barcode;
if (isset($this->BarcodeList)) $o['BarcodeList'] = JsonConverters::toArray('string', $this->BarcodeList);
if (isset($this->Selcode)) $o['Selcode'] = $this->Selcode;
if (isset($this->Color)) $o['Color'] = $this->Color;
if (isset($this->Size)) $o['Size'] = $this->Size;
if (isset($this->Web_Cat_1)) $o['Web_Cat_1'] = $this->Web_Cat_1;
if (isset($this->Web_Cat_2)) $o['Web_Cat_2'] = $this->Web_Cat_2;
if (isset($this->Web_Cat_3)) $o['Web_Cat_3'] = $this->Web_Cat_3;
if (isset($this->Web_Cat_4)) $o['Web_Cat_4'] = $this->Web_Cat_4;
if (isset($this->URL)) $o['URL'] = $this->URL;
if (isset($this->Image_Small)) $o['Image_Small'] = $this->Image_Small;
if (isset($this->Image_Medium)) $o['Image_Medium'] = $this->Image_Medium;
if (isset($this->Web_Desc)) $o['Web_Desc'] = $this->Web_Desc;
if (isset($this->Ebay_cat1)) $o['Ebay_cat1'] = $this->Ebay_cat1;
if (isset($this->Ebay_cat2)) $o['Ebay_cat2'] = $this->Ebay_cat2;
if (isset($this->Ebay_storecat1)) $o['Ebay_storecat1'] = $this->Ebay_storecat1;
if (isset($this->Ebay_storecat2)) $o['Ebay_storecat2'] = $this->Ebay_storecat2;
if (isset($this->Ebay_title)) $o['Ebay_title'] = $this->Ebay_title;
if (isset($this->Ebay_subtitle)) $o['Ebay_subtitle'] = $this->Ebay_subtitle;
if (isset($this->Ebay_desc)) $o['Ebay_desc'] = $this->Ebay_desc;
if (isset($this->Ebay_template)) $o['Ebay_template'] = $this->Ebay_template;
if (isset($this->Ebay_duration)) $o['Ebay_duration'] = $this->Ebay_duration;
if (isset($this->Ebay_format)) $o['Ebay_format'] = $this->Ebay_format;
if (isset($this->Ebay_paypreset)) $o['Ebay_paypreset'] = $this->Ebay_paypreset;
if (isset($this->Ebay_shippreset)) $o['Ebay_shippreset'] = $this->Ebay_shippreset;
if (isset($this->Ebay_shipdest)) $o['Ebay_shipdest'] = $this->Ebay_shipdest;
if (isset($this->Ebay_image1)) $o['Ebay_image1'] = $this->Ebay_image1;
if (isset($this->Ebay_image2)) $o['Ebay_image2'] = $this->Ebay_image2;
if (isset($this->Ebay_image3)) $o['Ebay_image3'] = $this->Ebay_image3;
if (isset($this->Ebay_image4)) $o['Ebay_image4'] = $this->Ebay_image4;
if (isset($this->Ebay_image5)) $o['Ebay_image5'] = $this->Ebay_image5;
if (isset($this->Ebay_image6)) $o['Ebay_image6'] = $this->Ebay_image6;
if (isset($this->Ebay_image7)) $o['Ebay_image7'] = $this->Ebay_image7;
if (isset($this->Ebay_image8)) $o['Ebay_image8'] = $this->Ebay_image8;
if (isset($this->Ebay_image9)) $o['Ebay_image9'] = $this->Ebay_image9;
if (isset($this->Ebay_image10)) $o['Ebay_image10'] = $this->Ebay_image10;
if (isset($this->Ebay_image11)) $o['Ebay_image11'] = $this->Ebay_image11;
if (isset($this->Ebay_image12)) $o['Ebay_image12'] = $this->Ebay_image12;
if (isset($this->Ebay_image13)) $o['Ebay_image13'] = $this->Ebay_image13;
if (isset($this->Ebay_image14)) $o['Ebay_image14'] = $this->Ebay_image14;
if (isset($this->Ebay_image15)) $o['Ebay_image15'] = $this->Ebay_image15;
if (isset($this->Ebay_image16)) $o['Ebay_image16'] = $this->Ebay_image16;
if (isset($this->Ebay_image17)) $o['Ebay_image17'] = $this->Ebay_image17;
if (isset($this->Ebay_image18)) $o['Ebay_image18'] = $this->Ebay_image18;
if (isset($this->Ebay_image19)) $o['Ebay_image19'] = $this->Ebay_image19;
if (isset($this->Ebay_image20)) $o['Ebay_image20'] = $this->Ebay_image20;
if (isset($this->Ebay_image21)) $o['Ebay_image21'] = $this->Ebay_image21;
if (isset($this->Ebay_image22)) $o['Ebay_image22'] = $this->Ebay_image22;
if (isset($this->Ebay_image23)) $o['Ebay_image23'] = $this->Ebay_image23;
if (isset($this->Ebay_image24)) $o['Ebay_image24'] = $this->Ebay_image24;
if (isset($this->ProductCode)) $o['ProductCode'] = $this->ProductCode;
if (isset($this->Dimension)) $o['Dimension'] = $this->Dimension;
if (isset($this->Restricted_Qtys)) $o['Restricted_Qtys'] = $this->Restricted_Qtys;
if (isset($this->Related_Products)) $o['Related_Products'] = $this->Related_Products;
if (isset($this->Upsell_Products)) $o['Upsell_Products'] = $this->Upsell_Products;
if (isset($this->Requires_Products)) $o['Requires_Products'] = $this->Requires_Products;
if (isset($this->Image_Large)) $o['Image_Large'] = $this->Image_Large;
if (isset($this->Audio_URL)) $o['Audio_URL'] = $this->Audio_URL;
if (isset($this->MPN)) $o['MPN'] = $this->MPN;
if (isset($this->Composer)) $o['Composer'] = $this->Composer;
if (isset($this->Arranger)) $o['Arranger'] = $this->Arranger;
if (isset($this->Artist)) $o['Artist'] = $this->Artist;
if (isset($this->Voicing)) $o['Voicing'] = $this->Voicing;
if (isset($this->Level)) $o['Level'] = $this->Level;
if (isset($this->Sample_URL)) $o['Sample_URL'] = $this->Sample_URL;
if (isset($this->TOC)) $o['TOC'] = $this->TOC;
if (isset($this->SE_desc)) $o['SE_desc'] = $this->SE_desc;
if (isset($this->SE_keywords)) $o['SE_keywords'] = $this->SE_keywords;
if (isset($this->SE_title)) $o['SE_title'] = $this->SE_title;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->Invoice_Notes)) $o['Invoice_Notes'] = $this->Invoice_Notes;
if (isset($this->POS_Reminder)) $o['POS_Reminder'] = $this->POS_Reminder;
if (isset($this->LocationQtys)) $o['LocationQtys'] = JsonConverters::toArray('QtyByLoc', $this->LocationQtys);
if (isset($this->Location_qtys)) $o['Location_qtys'] = $this->Location_qtys;
if (isset($this->WebcatChild1)) $o['WebcatChild1'] = $this->WebcatChild1;
if (isset($this->WebcatChild2)) $o['WebcatChild2'] = $this->WebcatChild2;
if (isset($this->WebcatChild3)) $o['WebcatChild3'] = $this->WebcatChild3;
if (isset($this->WebcatChild4)) $o['WebcatChild4'] = $this->WebcatChild4;
if (isset($this->Qty)) $o['Qty'] = $this->Qty;
if (isset($this->Qty_Available)) $o['Qty_Available'] = $this->Qty_Available;
if (isset($this->Cost)) $o['Cost'] = $this->Cost;
if (isset($this->Our_Price)) $o['Our_Price'] = $this->Our_Price;
if (isset($this->Retail)) $o['Retail'] = $this->Retail;
if (isset($this->Min_Price)) $o['Min_Price'] = $this->Min_Price;
if (isset($this->Price_A)) $o['Price_A'] = $this->Price_A;
if (isset($this->Price_B)) $o['Price_B'] = $this->Price_B;
if (isset($this->Price_C)) $o['Price_C'] = $this->Price_C;
if (isset($this->AE_Sale_Price)) $o['AE_Sale_Price'] = $this->AE_Sale_Price;
if (isset($this->Weight)) $o['Weight'] = $this->Weight;
if (isset($this->Ebay_qty)) $o['Ebay_qty'] = $this->Ebay_qty;
if (isset($this->Ebay_start)) $o['Ebay_start'] = $this->Ebay_start;
if (isset($this->Ebay_reserve)) $o['Ebay_reserve'] = $this->Ebay_reserve;
if (isset($this->Ebay_buyitnow)) $o['Ebay_buyitnow'] = $this->Ebay_buyitnow;
if (isset($this->WCost)) $o['WCost'] = $this->WCost;
if (isset($this->Margin_Perc)) $o['Margin_Perc'] = $this->Margin_Perc;
if (isset($this->Ebay_length)) $o['Ebay_length'] = $this->Ebay_length;
if (isset($this->Ebay_width)) $o['Ebay_width'] = $this->Ebay_width;
if (isset($this->Ebay_depth)) $o['Ebay_depth'] = $this->Ebay_depth;
if (isset($this->Ebay_wtmajor)) $o['Ebay_wtmajor'] = $this->Ebay_wtmajor;
if (isset($this->Ebay_wtminor)) $o['Ebay_wtminor'] = $this->Ebay_wtminor;
if (isset($this->Ebay)) $o['Ebay'] = $this->Ebay;
if (isset($this->Web)) $o['Web'] = $this->Web;
if (isset($this->Published)) $o['Published'] = $this->Published;
if (isset($this->Approval)) $o['Approval'] = $this->Approval;
if (isset($this->Call_To_Order)) $o['Call_To_Order'] = $this->Call_To_Order;
if (isset($this->Discontinued)) $o['Discontinued'] = $this->Discontinued;
if (isset($this->SellSerialsOnline)) $o['SellSerialsOnline'] = $this->SellSerialsOnline;
if (isset($this->LastUpdated)) $o['LastUpdated'] = JsonConverters::to('DateTime', $this->LastUpdated);
if (isset($this->InventoryAttributes)) $o['InventoryAttributes'] = JsonConverters::toArray('InventoryAttribute', $this->InventoryAttributes);
if (isset($this->ExtPk)) $o['ExtPk'] = $this->ExtPk;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class GetActiveE3PartyResponse extends BaseResponse implements JsonSerializable
{
/**
* @param BaseResponseResult|null $Status
*/
public function __construct(
?BaseResponseResult $Status=null,
// @DataMember
/** @var int */
public int $StartOffset=0,
// @DataMember
/** @var int */
public int $RecordCount=0,
// @DataMember
/** @var array<ActiveE3Party>|null */
public ?array $Records=null
) {
parent::__construct($Status);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['StartOffset'])) $this->StartOffset = $o['StartOffset'];
if (isset($o['RecordCount'])) $this->RecordCount = $o['RecordCount'];
if (isset($o['Records'])) $this->Records = JsonConverters::fromArray('ActiveE3Party', $o['Records']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->StartOffset)) $o['StartOffset'] = $this->StartOffset;
if (isset($this->RecordCount)) $o['RecordCount'] = $this->RecordCount;
if (isset($this->Records)) $o['Records'] = JsonConverters::toArray('ActiveE3Party', $this->Records);
return empty($o) ? new class(){} : $o;
}
}
/** @description GetActiveE3PartyRequires active-e Inventory Service or active-e Vortx E-Commerce or active-e 3rd Party E-Commerce */
// @DataContract
class GetActiveE3PartyRequest extends BaseRequest implements JsonSerializable
{
/**
* @param string $ApiKey
* @param string|null $OAuthToken
*/
public function __construct(
string $ApiKey='',
?string $OAuthToken=null,
// @DataMember
/** @var int|null */
public ?int $StartOffset=null,
// @DataMember
/** @var int|null */
public ?int $RecordCount=null,
/** @description Inventory, Packages, or NI. Defaults to Inventory. */
// @DataMember
// @ApiMember(DataType="string", Description="Inventory, Packages, or NI. Defaults to Inventory.", Name="InventoryType", ParameterType="query")
/** @var string|null */
public ?string $InventoryType=null,
/** @description Only Items in the sent WebCategory will be returned */
// @DataMember
// @ApiMember(DataType="string", Description="Only Items in the sent WebCategory will be returned", Name="WebCategory", ParameterType="query")
/** @var string|null */
public ?string $WebCategory=null,
/** @description If sent, only grab 3 Party Feed records updated after the date passed. */
// @DataMember
// @ApiMember(DataType="string", Description="If sent, only grab 3 Party Feed records updated after the date passed.", Format="date", Name="Date", ParameterType="query")
/** @var DateTime|null */
public ?DateTime $Date=null,
/** @description If sent, only the SKU sent will be returned */
// @DataMember
// @ApiMember(DataType="string", Description="If sent, only the SKU sent will be returned", Name="Sku", ParameterType="query")
/** @var string|null */
public ?string $Sku=null,
// @DataMember
/** @var bool|null */
public ?bool $IncludeAttributes=null
) {
parent::__construct($ApiKey,$OAuthToken);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['StartOffset'])) $this->StartOffset = $o['StartOffset'];
if (isset($o['RecordCount'])) $this->RecordCount = $o['RecordCount'];
if (isset($o['InventoryType'])) $this->InventoryType = $o['InventoryType'];
if (isset($o['WebCategory'])) $this->WebCategory = $o['WebCategory'];
if (isset($o['Date'])) $this->Date = JsonConverters::from('DateTime', $o['Date']);
if (isset($o['Sku'])) $this->Sku = $o['Sku'];
if (isset($o['IncludeAttributes'])) $this->IncludeAttributes = $o['IncludeAttributes'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->StartOffset)) $o['StartOffset'] = $this->StartOffset;
if (isset($this->RecordCount)) $o['RecordCount'] = $this->RecordCount;
if (isset($this->InventoryType)) $o['InventoryType'] = $this->InventoryType;
if (isset($this->WebCategory)) $o['WebCategory'] = $this->WebCategory;
if (isset($this->Date)) $o['Date'] = JsonConverters::to('DateTime', $this->Date);
if (isset($this->Sku)) $o['Sku'] = $this->Sku;
if (isset($this->IncludeAttributes)) $o['IncludeAttributes'] = $this->IncludeAttributes;
return empty($o) ? new class(){} : $o;
}
}
PHP GetActiveE3PartyRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/GetActiveE3Party HTTP/1.1 Host: active-ewebservice.biz Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"StartOffset":0,"RecordCount":0,"Records":[{"Model":"String","Sku":"String","WebNumber":"String","Desc":"String","Mfg":"String","Type":"String","Barcode":"String","BarcodeList":["String"],"Selcode":"String","Color":"String","Size":"String","Web_Cat_1":"String","Web_Cat_2":"String","Web_Cat_3":"String","Web_Cat_4":"String","URL":"String","Image_Small":"String","Image_Medium":"String","Web_Desc":"String","Ebay_cat1":"String","Ebay_cat2":"String","Ebay_storecat1":"String","Ebay_storecat2":"String","Ebay_title":"String","Ebay_subtitle":"String","Ebay_desc":"String","Ebay_template":"String","Ebay_duration":"String","Ebay_format":"String","Ebay_paypreset":"String","Ebay_shippreset":"String","Ebay_shipdest":"String","Ebay_image1":"String","Ebay_image2":"String","Ebay_image3":"String","Ebay_image4":"String","Ebay_image5":"String","Ebay_image6":"String","Ebay_image7":"String","Ebay_image8":"String","Ebay_image9":"String","Ebay_image10":"String","Ebay_image11":"String","Ebay_image12":"String","Ebay_image13":"String","Ebay_image14":"String","Ebay_image15":"String","Ebay_image16":"String","Ebay_image17":"String","Ebay_image18":"String","Ebay_image19":"String","Ebay_image20":"String","Ebay_image21":"String","Ebay_image22":"String","Ebay_image23":"String","Ebay_image24":"String","ProductCode":"String","Dimension":"String","Restricted_Qtys":"String","Related_Products":"String","Upsell_Products":"String","Requires_Products":"String","Image_Large":"String","Audio_URL":"String","MPN":"String","Composer":"String","Arranger":"String","Artist":"String","Voicing":"String","Level":"String","Sample_URL":"String","TOC":"String","SE_desc":"String","SE_keywords":"String","SE_title":"String","Notes":"String","Invoice_Notes":"String","POS_Reminder":"String","Location_qtys":"String","WebcatChild1":"String","WebcatChild2":"String","WebcatChild3":"String","WebcatChild4":"String","Qty":0,"Qty_Available":0,"Cost":0,"Our_Price":0,"Retail":0,"Min_Price":0,"Price_A":0,"Price_B":0,"Price_C":0,"AE_Sale_Price":0,"Weight":0,"Ebay_qty":0,"Ebay_start":0,"Ebay_reserve":0,"Ebay_buyitnow":0,"WCost":0,"Margin_Perc":0,"Ebay_length":0,"Ebay_width":0,"Ebay_depth":0,"Ebay_wtmajor":0,"Ebay_wtminor":0,"Ebay":false,"Web":false,"Published":false,"Approval":false,"Call_To_Order":false,"Discontinued":false,"SellSerialsOnline":false,"ExtPk":0}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}