File tree Expand file tree Collapse file tree 2 files changed +22
-10
lines changed
src/main/java/com/github/chen0040/magento/models Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 1
1
package com .github .chen0040 .magento .models ;
2
2
3
-
4
3
import lombok .Getter ;
5
4
import lombok .Setter ;
6
5
7
6
import java .util .ArrayList ;
8
7
import java .util .List ;
9
8
10
-
11
9
/**
12
10
* Created by xschen on 12/6/2017.
13
11
*/
14
12
@ Setter
15
13
@ Getter
16
14
public class Category {
17
- private long id = 2 ;
18
- private long parent_id = 1 ;
19
- private String name = "Category Store Group 1 - website_id_1" ;
20
- private boolean is_active = true ;
21
- private int position = 1 ;
22
- private int level = 1 ;
23
- private int product_count = 25 ;
24
- private List <Category > children_data = new ArrayList <>();
15
+ private long id = 2 ;
16
+ private long parent_id = 1 ;
17
+ private String name = "Category Store Group 1 - website_id_1" ;
18
+ private boolean is_active = true ;
19
+ private int position = 1 ;
20
+ private int level = 1 ;
21
+ private int product_count = 25 ;
22
+ List <CategoryAttribute > custom_attributes = new ArrayList <>();
23
+ private List <Category > children_data = new ArrayList <>();
25
24
}
Original file line number Diff line number Diff line change
1
+ package com .github .chen0040 .magento .models ;
2
+
3
+ import lombok .Getter ;
4
+ import lombok .Setter ;
5
+
6
+ @ Setter
7
+ @ Getter
8
+ public class CategoryAttribute {
9
+
10
+ private String attribute_code ;
11
+
12
+ private String value ;
13
+ }
You can’t perform that action at this time.
0 commit comments