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

com.adobe.commerce.cif.model.product.AbstractProduct Maven / Gradle / Ivy

Go to download

This package contains the REST API and java model definition of the Commerce Integration Framework (CIF) Cloud.

There is a newer version: 1.5.0
Show newest version
/*******************************************************************************
 *
 *    Copyright 2018 Adobe. All rights reserved.
 *    This file is licensed to you under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License. You may obtain a copy
 *    of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software distributed under
 *    the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 *    OF ANY KIND, either express or implied. See the License for the specific language
 *    governing permissions and limitations under the License.
 *
 ******************************************************************************/

package com.adobe.commerce.cif.model.product;

import java.util.List;

import com.adobe.commerce.cif.model.category.Category;
import com.adobe.commerce.cif.model.common.Asset;
import com.adobe.commerce.cif.model.common.Attribute;
import com.adobe.commerce.cif.model.common.ModelWithDates;
import com.adobe.commerce.cif.model.common.MoneyValue;
import io.swagger.annotations.ApiModelProperty;

public abstract class AbstractProduct extends ModelWithDates {

    @ApiModelProperty(value = "The internal unique ID of the product in the commerce backend system.", required = true)
    protected String id;
    
    @ApiModelProperty(value = "The name of the product.", required = true)
    protected String name;

    @ApiModelProperty(value = "The description of the product.")
    protected String description;

    @ApiModelProperty(value = "The prices for this product.", required = true)
    protected List prices;

    @ApiModelProperty(value = "The categories for this product.")
    protected List categories;

    @ApiModelProperty(value = "The assets for this product.")
    protected List assets;

    @ApiModelProperty(value = "The attributes for this product.")
    protected List attributes;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List getPrices() {
        return prices;
    }

    public void setPrices(List prices) {
        this.prices = prices;
    }

    public List getCategories() {
        return categories;
    }

    public void setCategories(List categories) {
        this.categories = categories;
    }

    public List getAssets() {
        return assets;
    }

    public void setAssets(List assets) {
        this.assets = assets;
    }

    public List getAttributes() {
        return attributes;
    }

    public void setAttributes(List attributes) {
        this.attributes = attributes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy