id = $offerId; } /** * @param string $url * @return $this */ public function image($url) { $this->images[] = new \x13allegro\Api\Model\Image($url); return $this; } /** * @return array */ public function jsonSerialize() { return array( 'id' => $this->id, 'language' => $this->language, 'name' => $this->name, 'external' => $this->external, 'product' => $this->product, 'description' => $this->description, 'parameters' => $this->parameters, 'category' => $this->category, 'images' => $this->images, 'publication' => $this->publication, 'sellingMode' => $this->sellingMode, 'taxSettings' => $this->taxSettings, 'sizeTable' => $this->sizeTable, 'stock' => $this->stock, 'delivery' => $this->delivery, 'discounts' => $this->discounts, 'location' => $this->location, 'payments' => $this->payments, 'promotion' => $this->promotion, 'additionalMarketplaces' => $this->additionalMarketplaces, 'afterSalesServices' => $this->afterSalesServices, 'additionalServices' => (is_object($this->additionalServices) && $this->additionalServices->id ? $this->additionalServices : null), 'compatibilityList' => $this->compatibilityList, 'tecdocSpecification' => $this->tecdocSpecification, 'messageToSellerSettings' => $this->messageToSellerSettings, 'b2b' => $this->b2b ); } }