
com.github.chen0040.magento.models.Product Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-magento-client Show documentation
Show all versions of java-magento-client Show documentation
Java client that communicate with magento site in Java
package com.github.chen0040.magento.models;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by xschen on 12/6/2017.
*/
@Getter
@Setter
public class Product {
public static final int VISIBILITY_NOT_VISIBLE = 1;
public static final int VISIBILITY_IN_CATALOG = 2;
public static final int VISIBILITY_IN_SEARCH = 3;
public static final int VISIBILITY_BOTH = 4;
public static final int STATUS_DISABLED = 2;
public static final int STATUS_ENABLED = 1;
private long id = 1;
private String sku = "product_dynamic_1";
private String name = "Simple Product 1";
private long attribute_set_id = 4;
private double price = 10;
private int status = 1;
private int visibility = 4;
private String type_id = "simple";
private String created_at = "2017-05-03 03:46:13";
private String updated_at = "2017-05-03 03:46:13";
private double weight = 1;
private List extension_attributes = new ArrayList<>();
private List product_links = new ArrayList<>();
private List tier_prices = new ArrayList<>();
private List custom_attributes = new ArrayList<>();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy