parent
83795da8f0
commit
d71d3ccdef
|
@ -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"`
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -54,6 +54,7 @@ type Place struct {
|
|||
RevenueNotTaxable float64
|
||||
Revneuebase float64
|
||||
SalesTaxRate *TaxRate
|
||||
Split bool
|
||||
StateCode string
|
||||
StateID string
|
||||
Status string
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue