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

io.fruitful.ecomerce.dto.MagentoCategoryDto Maven / Gradle / Ivy

package io.fruitful.ecomerce.dto;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class MagentoCategoryDto {
	@JsonProperty("id")
	private Long id;

	private Long parentId;

	@JsonProperty("name")
	private String name;

	private boolean isActive;

	private Integer productCount;

	private List children;

	@JsonProperty("position")
	private Integer position;

	@JsonProperty("level")
	private Integer level;

	@JsonProperty("path")
	private String path;

	@JsonGetter("parentId")
	public Long getParentId() {
		return parentId;
	}

	@JsonSetter("parent_id")
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	@JsonGetter("isActive")
	public boolean isActive() {
		return isActive;
	}

	@JsonSetter("is_active")
	public void setActive(boolean active) {
		isActive = active;
	}

	@JsonGetter("children")
	public List getChildren() {
		return children;
	}

	@JsonSetter("children_data")
	public void setChildren(List children) {
		this.children = children;
	}

	@JsonGetter("productCount")
	public Integer getProductCount() {
		return productCount;
	}

	@JsonSetter("product_count")
	public void setProductCount(Integer productCount) {
		this.productCount = productCount;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy