split places

v0.3.1 v0.3.1
Vernon Keenan 2021-02-19 09:47:02 -08:00
parent 83795da8f0
commit d71d3ccdef
6 changed files with 10 additions and 3 deletions

View File

@ -134,6 +134,9 @@ type Place struct {
// sales tax rate
SalesTaxRate *TaxRate `json:"SalesTaxRate,omitempty"`
// Is this place that is split by county boundaries?
Split bool `json:"Split,omitempty"`
// State Code
StateCode string `json:"StateCode,omitempty"`

View File

@ -9,7 +9,7 @@ func InitForce(serviceAccountName string) *force.API {
sugar.Infof("app.initForce: 📥 %s", serviceAccountName)
acct := GetServiceAccount(serviceAccountName)
theForce, err := force.Create(
"v45.0",
"v49.0",
acct.ClientID,
acct.ClientSecret,
acct.Username,

View File

@ -54,6 +54,7 @@ func UnMarshalPlace(s *geo_models.Place) *Place {
RevenueNet: s.RevenueNet,
RevenueNotTaxable: s.RevenueNotTaxable,
Revneuebase: s.RevenueBase,
Split: s.Split,
StateCode: s.StateCode,
StateID: s.StateID,
Status: s.Status,
@ -135,6 +136,7 @@ func (obj *Place) MarshalToSwagger() *geo_models.Place {
RevenueNet: obj.RevenueNet,
RevenueNotTaxable: obj.RevenueNotTaxable,
SalesTaxRate: salesTaxRate,
Split: obj.Split,
StateID: obj.StateID,
Status: obj.Status,
Subtotal: obj.Subtotal,

View File

@ -54,6 +54,7 @@ type Place struct {
RevenueNotTaxable float64
Revneuebase float64
SalesTaxRate *TaxRate
Split bool
StateCode string
StateID string
Status string

View File

@ -47,8 +47,6 @@ const countyGeocodeLength = 7
var maxTaxTypes = int64(2000) //nolint:gomnd // it's a var const
// const cityGeocodeLength = 12
// InitConfig exports the config initialization func
func InitConfig(systemName string, initalLogLevel zapcore.Level) {
if configured {

View File

@ -2093,6 +2093,9 @@ definitions:
SalesTaxRate:
$ref: "#/definitions/TaxRate"
type: object
Split:
type: boolean
description: Is this place that is split by county boundaries?
StateID:
description: State
type: string