lib/app/place.go

67 lines
1.6 KiB
Go
Raw Permalink Normal View History

2021-01-10 23:44:39 +00:00
package app
2021-01-10 18:40:46 +00:00
2021-01-12 05:46:24 +00:00
import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
)
// PlaceChannelWrapper wraps the object with the security principal
type PlaceChannelWrapper struct {
Obj geo_models.Place
Principal User
2021-01-13 05:30:35 +00:00
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// Place is a first class object type
type Place struct {
ID string
AccountID string
AccountValidation string
Amount float64
AreaDescription string
ContactID string
CountryID string
CountyID string
CreatedByID string
CreatedDate sql.NullTime
EnrollmentStatus string
FIPS string
FIPSclass string
FunctionalStatus string
Geocode string
GNIS int64
HasDistrictTaxes bool
Interest float64
Landarea int64
LastModifiedByID string
LastModifiedDate sql.NullTime
Longitude float64
Latitude float64
LegalName string
Name string
Penalty float64
Ref string
ReportedAdjustments float64
ReportedDeductions float64
ReportedNetRevenue float64
ReportedRate float64
ReportedRevenue float64
RevenueBase float64
RevenueNet float64
RevenueNotTaxable float64
Revneuebase float64
SalesTaxRate *TaxRate
StateCode string
StateID string
Status string
Subtotal float64
TaxInstances []*TaxInstance
TemplateID string
TotalAmount float64
TotalArea int64
UnitBase float64
WaterArea int64
}