-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathattribute_set_types.go
61 lines (54 loc) · 1.91 KB
/
attribute_set_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package magento2
type AttributeSet struct {
AttributeSetID int `json:"attribute_set_id,omitempty"`
AttributeSetName string `json:"attribute_set_name"`
SortOrder int `json:"sort_order"`
EntityTypeID int `json:"entity_type_id,omitempty"`
ExtensionAttributes interface{} `json:"extension_attributes,omitempty"`
}
type Group struct {
AttributeGroupID string `json:"attribute_group_id,omitempty"`
AttributeGroupName string `json:"attribute_group_name"`
AttributeSetID int `json:"attribute_set_id"`
ExtensionAttributes struct {
AttributeGroupCode string `json:"attribute_group_code,omitempty"`
SortOrder string `json:"sort_order,omitempty"`
} `json:"extension_attributes,omitempty"`
}
type attributeSetSearchQueryResponse struct {
AttributeSets []AttributeSet `json:"items"`
SearchCriteria struct {
FilterGroups []struct {
Filters []struct {
Field string `json:"field"`
Value string `json:"value"`
ConditionType string `json:"condition_type"`
} `json:"filters"`
} `json:"filter_groups"`
} `json:"search_criteria"`
}
type groupSearchQueryResponse struct {
Groups []Group `json:"items"`
SearchCriteria struct {
FilterGroups []struct {
Filters []struct {
Field string `json:"field"`
Value string `json:"value"`
ConditionType string `json:"condition_type"`
} `json:"filters"`
} `json:"filter_groups"`
} `json:"search_criteria"`
}
type createAttributeSetPayload struct {
AttributeSet AttributeSet `json:"attributeSet"`
SkeletonID int `json:"skeletonId"`
}
type assignAttributePayload struct {
AttributeSetID int `json:"attributeSetId"`
AttributeSetGroupID int `json:"attributeGroupId"`
AttributeCode string `json:"attributeCode"`
SortOrder int `json:"sortOrder"`
}
type createGroupPayload struct {
Group Group `json:"group"`
}