-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder_line_item.go
31 lines (30 loc) · 1.82 KB
/
order_line_item.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
package shopware
// OrderLineItem seE:
// https://github.com/shopware/platform/blob/6.2/src/Core/Checkout/Order/Aggregate/OrderLineItem/OrderLineItemEntity.php
type OrderLineItem struct {
Entity
OrderID string `json:"orderId"`
Identifier string `json:"identifier"`
ReferencedID string `json:"referencedId"`
ProductID string `json:"productId"`
Quantity int `json:"quantity"`
UnitPrice float64 `json:"unitPrice"`
TotalPrice float64 `json:"totalPrice"`
Label string `json:"label"`
Description string `json:"description"`
Good bool `json:"good"`
Removable bool `json:"removable"`
CoverID string `json:"coverId"`
Stackable bool `json:"stackable"`
Position int `json:"position"`
Price *CalculatedPrice `json:"price"`
PriceDefinition *PriceDefinitionInterface `json:"priceDefinition"`
Payload []string `json:"payload"`
ParentID string `json:"parentId"`
Typ string `json:"type"` // shopware: type
Order *Order `json:"order"`
OrderDeliveryPositions []*OrderDeliveryPosition `json:"orderDeliveryPositions"`
Cover *MediaEntity `json:"cover"`
Children []*OrderLineItem `json:"children"`
Product *Product `json:"product"`
}