2021-01-10 23:44:39 +00:00
|
|
|
package app
|
2021-01-10 18:40:46 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
2021-01-27 23:11:19 +00:00
|
|
|
"html/template"
|
2021-01-12 05:46:24 +00:00
|
|
|
|
|
|
|
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
|
2021-01-10 18:40:46 +00:00
|
|
|
)
|
|
|
|
|
2021-01-19 20:23:02 +00:00
|
|
|
// CoordinateBasicActivityWrapper wraps the object with workflow params
|
|
|
|
type CoordinateBasicActivityWrapper struct {
|
2021-01-19 01:50:45 +00:00
|
|
|
Obj geo_models.CoordinateBasic
|
|
|
|
APIKey string
|
|
|
|
SagaID string
|
|
|
|
SagaType string
|
2021-01-12 05:46:24 +00:00
|
|
|
}
|
|
|
|
|
2021-01-10 18:40:46 +00:00
|
|
|
// CoordinateBasic is a first class object type
|
|
|
|
type CoordinateBasic struct {
|
|
|
|
ID string
|
|
|
|
CountryID string
|
|
|
|
CountyID string
|
|
|
|
Focus string
|
|
|
|
Geocode string
|
|
|
|
IsDistrict bool
|
|
|
|
Name string
|
|
|
|
PlaceID string
|
|
|
|
Ref string
|
|
|
|
StateID string
|
|
|
|
TaxTypes []*string
|
|
|
|
}
|
|
|
|
|
2021-01-19 20:23:02 +00:00
|
|
|
// CoordinateActivityWrapper wraps the object with workflow params
|
|
|
|
type CoordinateActivityWrapper struct {
|
2021-01-19 01:50:45 +00:00
|
|
|
Obj geo_models.Coordinate
|
|
|
|
APIKey string
|
|
|
|
SagaID string
|
|
|
|
SagaType string
|
2021-01-12 05:46:24 +00:00
|
|
|
}
|
|
|
|
|
2021-01-10 18:40:46 +00:00
|
|
|
// Coordinate is a first class object type
|
|
|
|
type Coordinate struct {
|
|
|
|
ID string
|
2021-01-27 23:11:19 +00:00
|
|
|
BusinessTaxTypes []*TaxType
|
|
|
|
CannabisTypes []*TaxType
|
2021-01-10 18:40:46 +00:00
|
|
|
Country string
|
|
|
|
CountryID string
|
|
|
|
County string
|
|
|
|
CountyID string
|
|
|
|
CreatedByID string
|
|
|
|
CreatedDate sql.NullTime
|
2021-01-27 23:11:19 +00:00
|
|
|
ExciseTaxTypes []*TaxType
|
2021-01-10 18:40:46 +00:00
|
|
|
Focus string
|
|
|
|
FormattedAddress string
|
|
|
|
Geocode string
|
|
|
|
IsDistrict bool
|
|
|
|
LastModifiedByID string
|
|
|
|
LastModifiedDate sql.NullTime
|
|
|
|
Latitude float64
|
|
|
|
Longitude float64
|
2021-01-27 23:11:19 +00:00
|
|
|
Map template.URL
|
|
|
|
MerchTaxTypes []*TaxType
|
2021-01-10 18:40:46 +00:00
|
|
|
Name string
|
|
|
|
Neighborhood string
|
|
|
|
OwnerID string
|
|
|
|
Place string
|
|
|
|
PlaceID string
|
|
|
|
PostalCode string
|
|
|
|
Ref string
|
2021-01-27 23:11:19 +00:00
|
|
|
Situs string
|
2021-01-10 18:40:46 +00:00
|
|
|
State string
|
|
|
|
StateID string
|
|
|
|
Status string
|
|
|
|
Street string
|
|
|
|
StreetNumber string
|
2021-01-27 23:11:19 +00:00
|
|
|
StreetView template.URL
|
2021-01-10 18:40:46 +00:00
|
|
|
TaxRate *TaxRate
|
|
|
|
TaxTypeIDs []*string
|
2021-01-27 23:11:19 +00:00
|
|
|
TaxTypes []*TaxType
|
|
|
|
TelecomTaxTypes []*TaxType
|
2021-01-10 18:40:46 +00:00
|
|
|
}
|