All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scayle.adminapi.model.Product Maven / Gradle / Ivy

There is a newer version: 1.24.0
Show newest version
package com.scayle.adminapi.model;

import java.util.List;
import java.util.Map;

import com.google.gson.annotations.SerializedName;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Product implements ApiObjectInterface {
    /**
    * The ID of the product created by SCAYLE.
    */
    @SerializedName("id")
    Integer id;

    /**
    * If product is in problem state, the reasons are listed here.
    */
    @SerializedName("problems")
    List problems;

    /**
    * A key that uniquely identifies the product (e.g., a shirt in a specific color) within the tenant's ecosystem.
    */
    @SerializedName("referenceKey")
    String referenceKey;

    /**
    * The localized product name. At least the base language that is configured in SCAYLE is mandatory.
    */
    @SerializedName("name")
    Map name;

    /**
    * The master the product is attached to.
    */
    @SerializedName("master")
    Master master;

    /**
    * The state of the product is determined by the state evaluation process. The only possible values to request are `live`, `draft` and `blocked`. The `problem` state can only be the result of the state evaluation process. If product is in problem state, the reasons are listed in read-only 'problems' field. The `new` and `inApproval` states can be set in the SCAYLE Panel. If a product belongs to multiple merchants, the state is returned based on the hierarchical order live, inApproval, problem, blocked, draft.
    */
    @SerializedName("state")
    String state = "live";

    /**
    * A list of attributes attached to the product.
    */
    @SerializedName("attributes")
    List attributes;

    /**
    * A list of product variants attached to the product.
    */
    @SerializedName("variants")
    List variants;

    /**
    * A list of product images attached to the product.
    */
    @SerializedName("images")
    List images;

    /**
    * A list of product sortings.
    */
    @SerializedName("productSortings")
    List productSortings;

    /**
    * 
    */
    @SerializedName("customData")
    Object customData;

    /**
    * Indicates whether the product is composite.
    */
    @SerializedName("isComposite")
    Boolean isComposite;

    /**
    * A list of merchant reference keys the product belongs to.
    */
    @SerializedName("merchantReferenceKeys")
    List merchantReferenceKeys;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy