package productcatalog.pages;

import common.pages.DetailData;
import common.pages.ImageData;
import common.pages.SelectableData;
import io.sphere.sdk.models.Base;

import java.util.List;

public class ProductData extends Base {

    private final String text;
    private final String sku;
    private final String description;
    private final String price;
    private final String priceOld;
    private final List<ImageData> images;
    private final List<SelectableData> colors;
    private final List<SelectableData> sizes;
    private final List<DetailData> details;

    public ProductData (final String text, final String sku, final String description, final String price, final String priceOld, final List<ImageData> images, final List<SelectableData> colors, final List<SelectableData> sizes, final List<DetailData> details) {
        this.text = text;
        this.sku = sku;
        this.description = description;
        this.price = price;
        this.priceOld = priceOld;
        this.images = images;
        this.colors = colors;
        this.sizes = sizes;
        this.details = details;
    }

    public String getText() {
        return text;
    }

    public String getSku() {
        return sku;
    }

    public String getDescription() {
        return description;
    }

    public String getPrice() {
        return price;
    }

    public String getPriceOld() {
        return priceOld;
    }

    public List<ImageData> getImages() {
        return images;
    }

    public List<SelectableData> getColors() {
        return colors;
    }

    public List<SelectableData> getSizes() {
        return sizes;
    }

    public List<DetailData> getDetails() {
        return details;
    }
}

@@ -1103,32 +1103,112 @@
 details;%0A    %7D%0A%0A
+    public String getId() %7B%0A        return Integer.toString(hashCode());%0A    %7D%0A%0A
     public Strin

Add temporary id to ProductData