forked from jinmatt/go-quickbooks.v2
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtax_code.go
38 lines (33 loc) · 1.26 KB
/
tax_code.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
package quickbooks
type TaxCode struct {
Name string `json:"Name"`
Description string `json:"Description"`
Active bool `json:"Active"`
Taxable bool `json:"Taxable"`
TaxGroup bool `json:"TaxGroup"`
SalesTaxRateList SalesTaxRateList `json:"SalesTaxRateList"`
PurchaseTaxRateList PurchaseTaxRateList `json:"PurchaseTaxRateList"`
Domain string `json:"domain"`
Sparse bool `json:"sparse"`
ID string `json:"Id"`
SyncToken string `json:"SyncToken"`
MetaData struct {
CreateTime string `json:"CreateTime"`
LastUpdatedTime string `json:"LastUpdatedTime"`
} `json:"MetaData"`
}
type SalesTaxRateList struct {
TaxRateDetail []TaxRateDetail `json:"TaxRateDetail"`
}
type PurchaseTaxRateList struct {
TaxRateDetail []TaxRateDetail `json:"TaxRateDetail"`
}
type TaxRateRef struct {
Value string `json:"value"`
Name string `json:"name"`
}
type TaxRateDetail struct {
TaxRateRef TaxRateRef `json:"TaxRateRef"`
TaxTypeApplicable string `json:"TaxTypeApplicable"`
TaxOrder int `json:"TaxOrder"`
}