flamingo.me/flamingo-commerce/v3@v3.11.0/order/domain/order.go (about) 1 package domain 2 3 import ( 4 "time" 5 ) 6 7 type ( 8 // Order struct 9 Order struct { 10 ID string 11 CreationTime time.Time 12 UpdateTime time.Time 13 OrderItems []*OrderItem 14 Status string 15 Total float64 16 CurrencyCode string 17 Attributes Attributes 18 } 19 20 // OrderItem struct 21 OrderItem struct { 22 // DEPRECATED 23 Sku string 24 25 MarketplaceCode string 26 VariantMarketplaceCode string 27 28 Qty float64 29 30 CurrencyCode string 31 SinglePrice float64 32 SinglePriceInclTax float64 33 RowTotal float64 34 TaxAmount float64 35 RowTotalInclTax float64 36 37 Name string 38 Price float64 39 PriceInclTax float64 40 41 // Source Id where the item should be picked 42 SourceID string 43 44 Attributes Attributes 45 } 46 47 // Attributes map 48 Attributes map[string]Attribute 49 50 // Attribute interface 51 Attribute interface{} 52 )