-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathline_item.go
17 lines (16 loc) · 872 Bytes
/
line_item.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package xero
// LineItem is a line containing detail on an Invoice.
type LineItem struct {
Description string `json:"Description,omitempty"`
Quantity float64 `json:"Quantity,omitempty"`
UnitAmount float64 `json:"UnitAmount,omitempty"`
ItemCode string `json:"ItemCode,omitempty"`
AccountCode string `json:"AccountCode,omitempty"`
LineItemID string `json:"LineItemID,omitempty"`
TaxType string `json:"TaxType,omitempty"`
TaxAmount float64 `json:"TaxAmount,omitempty"`
LineAmount float64 `json:"LineAmount,omitempty"`
DiscountRate string `json:"DiscountRate,omitempty"`
DiscountAmount string `json:"DiscountAmount,omitempty"`
Tracking []TrackingCategory `json:"Tracking,omitempty"`
}