-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_manufacturer.go
24 lines (22 loc) · 1.21 KB
/
product_manufacturer.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
package shopware
// ProductManufacturer is a manufacturer of an product
// https://github.com/shopware/platform/blob/6.2/src/Core/Content/Product/Aggregate/ProductManufacturer/ProductManufacturerEntity.php
type ProductManufacturer struct {
Entity
Description string `json:"description"`
Link string `json:"link"`
Media MediaEntity `json:"media"`
MediaID string `json:"mediaId"`
Name string `json:"name"`
Products []*Product `json:"products"`
Translations []*ProductManufacturerTranslation `json:"translations"`
}
// ProductManufacturerTranslation see:
// https://github.com/shopware/platform/blob/6.2/src/Core/Content/Product/Aggregate/ProductManufacturerTranslation/ProductManufacturerTranslationEntity.php
type ProductManufacturerTranslation struct {
TranslationEntity
ProductManufacturerID string `json:"productManufacturerId"`
Name string `json:"name"`
Description string `json:"description"`
ProductManufacturer *ProductManufacturer `json:"productManufacturer"`
}